summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/node/cjs_reexport_same_specifier_in_sub_folder/__test__.jsonc4
-rw-r--r--tests/specs/node/cjs_reexport_same_specifier_in_sub_folder/main.out7
-rw-r--r--tests/specs/node/cjs_reexport_same_specifier_in_sub_folder/main.ts3
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/specs/node/cjs_reexport_same_specifier_in_sub_folder/__test__.jsonc b/tests/specs/node/cjs_reexport_same_specifier_in_sub_folder/__test__.jsonc
new file mode 100644
index 000000000..5517e693d
--- /dev/null
+++ b/tests/specs/node/cjs_reexport_same_specifier_in_sub_folder/__test__.jsonc
@@ -0,0 +1,4 @@
+{
+ "args": "run main.ts",
+ "output": "main.out"
+}
diff --git a/tests/specs/node/cjs_reexport_same_specifier_in_sub_folder/main.out b/tests/specs/node/cjs_reexport_same_specifier_in_sub_folder/main.out
new file mode 100644
index 000000000..321d995b8
--- /dev/null
+++ b/tests/specs/node/cjs_reexport_same_specifier_in_sub_folder/main.out
@@ -0,0 +1,7 @@
+Download http://localhost:4260/@denotest/cjs-reexport-same-specifier-in-sub-folder
+Download http://localhost:4260/@denotest/cjs-reexport-same-specifier-in-sub-folder/1.0.0.tgz
+[Module: null prototype] {
+ default: { main: [Getter], sub: [Getter] },
+ main: 1,
+ sub: 2
+}
diff --git a/tests/specs/node/cjs_reexport_same_specifier_in_sub_folder/main.ts b/tests/specs/node/cjs_reexport_same_specifier_in_sub_folder/main.ts
new file mode 100644
index 000000000..fd0bf7eba
--- /dev/null
+++ b/tests/specs/node/cjs_reexport_same_specifier_in_sub_folder/main.ts
@@ -0,0 +1,3 @@
+import * as module from "npm:@denotest/cjs-reexport-same-specifier-in-sub-folder";
+
+console.log(module);