summaryrefslogtreecommitdiff
path: root/tests/specs/check/declaration_header_file_with_no_exports
diff options
context:
space:
mode:
authorMohammad Sulaiman <mohammad.sulaiman@exalt.ps>2024-10-02 12:22:35 +0300
committerGitHub <noreply@github.com>2024-10-02 09:22:35 +0000
commit3c193aef98bea6b3e0c9592cfdb43268e7a7e4af (patch)
treeadbf9730a91c0f692a633f028d8066819e37ab94 /tests/specs/check/declaration_header_file_with_no_exports
parentd116709d064ce85922f1fd635d5915b4659c83d5 (diff)
chore: deprecate check itests (#25963)
Diffstat (limited to 'tests/specs/check/declaration_header_file_with_no_exports')
-rw-r--r--tests/specs/check/declaration_header_file_with_no_exports/__test__.jsonc4
-rw-r--r--tests/specs/check/declaration_header_file_with_no_exports/declaration_header_file_with_no_exports.ts2
-rw-r--r--tests/specs/check/declaration_header_file_with_no_exports/declaration_header_file_with_no_exports_js.d.ts0
-rw-r--r--tests/specs/check/declaration_header_file_with_no_exports/declaration_header_file_with_no_exports_js.js1
4 files changed, 7 insertions, 0 deletions
diff --git a/tests/specs/check/declaration_header_file_with_no_exports/__test__.jsonc b/tests/specs/check/declaration_header_file_with_no_exports/__test__.jsonc
new file mode 100644
index 000000000..08fc0a2d6
--- /dev/null
+++ b/tests/specs/check/declaration_header_file_with_no_exports/__test__.jsonc
@@ -0,0 +1,4 @@
+{
+ "args": "check --quiet declaration_header_file_with_no_exports.ts",
+ "output": ""
+}
diff --git a/tests/specs/check/declaration_header_file_with_no_exports/declaration_header_file_with_no_exports.ts b/tests/specs/check/declaration_header_file_with_no_exports/declaration_header_file_with_no_exports.ts
new file mode 100644
index 000000000..ef5da7a38
--- /dev/null
+++ b/tests/specs/check/declaration_header_file_with_no_exports/declaration_header_file_with_no_exports.ts
@@ -0,0 +1,2 @@
+import * as foo from "./declaration_header_file_with_no_exports_js.js";
+console.log(foo);
diff --git a/tests/specs/check/declaration_header_file_with_no_exports/declaration_header_file_with_no_exports_js.d.ts b/tests/specs/check/declaration_header_file_with_no_exports/declaration_header_file_with_no_exports_js.d.ts
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/specs/check/declaration_header_file_with_no_exports/declaration_header_file_with_no_exports_js.d.ts
diff --git a/tests/specs/check/declaration_header_file_with_no_exports/declaration_header_file_with_no_exports_js.js b/tests/specs/check/declaration_header_file_with_no_exports/declaration_header_file_with_no_exports_js.js
new file mode 100644
index 000000000..b8ae2bcef
--- /dev/null
+++ b/tests/specs/check/declaration_header_file_with_no_exports/declaration_header_file_with_no_exports_js.js
@@ -0,0 +1 @@
+/// <reference types="./declaration_header_file_with_no_exports_js.d.ts" />