summaryrefslogtreecommitdiff
path: root/tests/specs/run/fix_tsc_file_exists/tsc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/run/fix_tsc_file_exists/tsc')
-rw-r--r--tests/specs/run/fix_tsc_file_exists/tsc/a.js2
-rw-r--r--tests/specs/run/fix_tsc_file_exists/tsc/d.ts3
-rw-r--r--tests/specs/run/fix_tsc_file_exists/tsc/node_modules/b.js2
-rw-r--r--tests/specs/run/fix_tsc_file_exists/tsc/node_modules/c.js1
-rw-r--r--tests/specs/run/fix_tsc_file_exists/tsc/test.js4
5 files changed, 12 insertions, 0 deletions
diff --git a/tests/specs/run/fix_tsc_file_exists/tsc/a.js b/tests/specs/run/fix_tsc_file_exists/tsc/a.js
new file mode 100644
index 000000000..5a7b3ff93
--- /dev/null
+++ b/tests/specs/run/fix_tsc_file_exists/tsc/a.js
@@ -0,0 +1,2 @@
+import { v4 } from "./d.ts";
+export function a() {}
diff --git a/tests/specs/run/fix_tsc_file_exists/tsc/d.ts b/tests/specs/run/fix_tsc_file_exists/tsc/d.ts
new file mode 100644
index 000000000..3c74b8c83
--- /dev/null
+++ b/tests/specs/run/fix_tsc_file_exists/tsc/d.ts
@@ -0,0 +1,3 @@
+export function v4() {
+ return "hello";
+}
diff --git a/tests/specs/run/fix_tsc_file_exists/tsc/node_modules/b.js b/tests/specs/run/fix_tsc_file_exists/tsc/node_modules/b.js
new file mode 100644
index 000000000..191660935
--- /dev/null
+++ b/tests/specs/run/fix_tsc_file_exists/tsc/node_modules/b.js
@@ -0,0 +1,2 @@
+import c from "./c.js";
+export { c };
diff --git a/tests/specs/run/fix_tsc_file_exists/tsc/node_modules/c.js b/tests/specs/run/fix_tsc_file_exists/tsc/node_modules/c.js
new file mode 100644
index 000000000..cff71c44a
--- /dev/null
+++ b/tests/specs/run/fix_tsc_file_exists/tsc/node_modules/c.js
@@ -0,0 +1 @@
+export default function c() {}
diff --git a/tests/specs/run/fix_tsc_file_exists/tsc/test.js b/tests/specs/run/fix_tsc_file_exists/tsc/test.js
new file mode 100644
index 000000000..b7f46b351
--- /dev/null
+++ b/tests/specs/run/fix_tsc_file_exists/tsc/test.js
@@ -0,0 +1,4 @@
+import { a } from "./a.js";
+import { c } from "./node_modules/b.js";
+
+console.log("hello");