summaryrefslogtreecommitdiff
path: root/tests/specs/check/module_detection_force
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/module_detection_force
parentd116709d064ce85922f1fd635d5915b4659c83d5 (diff)
chore: deprecate check itests (#25963)
Diffstat (limited to 'tests/specs/check/module_detection_force')
-rw-r--r--tests/specs/check/module_detection_force/__test__.jsonc4
-rw-r--r--tests/specs/check/module_detection_force/module_detection_force/import.ts2
-rw-r--r--tests/specs/check/module_detection_force/module_detection_force/main.ts3
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/specs/check/module_detection_force/__test__.jsonc b/tests/specs/check/module_detection_force/__test__.jsonc
new file mode 100644
index 000000000..9c892bd72
--- /dev/null
+++ b/tests/specs/check/module_detection_force/__test__.jsonc
@@ -0,0 +1,4 @@
+{
+ "args": "check --quiet module_detection_force/main.ts",
+ "output": ""
+}
diff --git a/tests/specs/check/module_detection_force/module_detection_force/import.ts b/tests/specs/check/module_detection_force/module_detection_force/import.ts
new file mode 100644
index 000000000..66b229870
--- /dev/null
+++ b/tests/specs/check/module_detection_force/module_detection_force/import.ts
@@ -0,0 +1,2 @@
+const a = 2;
+console.log(a);
diff --git a/tests/specs/check/module_detection_force/module_detection_force/main.ts b/tests/specs/check/module_detection_force/module_detection_force/main.ts
new file mode 100644
index 000000000..a55c9962b
--- /dev/null
+++ b/tests/specs/check/module_detection_force/module_detection_force/main.ts
@@ -0,0 +1,3 @@
+const a = 1;
+await import("./import.ts");
+console.log(a);