summaryrefslogtreecommitdiff
path: root/tests/testdata/npm/cjs_require_esm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/npm/cjs_require_esm')
-rw-r--r--tests/testdata/npm/cjs_require_esm/main.out4
-rw-r--r--tests/testdata/npm/cjs_require_esm/main.ts2
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/testdata/npm/cjs_require_esm/main.out b/tests/testdata/npm/cjs_require_esm/main.out
new file mode 100644
index 000000000..4afceccc9
--- /dev/null
+++ b/tests/testdata/npm/cjs_require_esm/main.out
@@ -0,0 +1,4 @@
+[Module: null prototype] {
+ Test: [Module: null prototype] { Test: [class Test] },
+ default: { Test: [Module: null prototype] { Test: [class Test] } }
+}
diff --git a/tests/testdata/npm/cjs_require_esm/main.ts b/tests/testdata/npm/cjs_require_esm/main.ts
new file mode 100644
index 000000000..069d4b60e
--- /dev/null
+++ b/tests/testdata/npm/cjs_require_esm/main.ts
@@ -0,0 +1,2 @@
+import * as ns from "npm:@denotest/cjs-require-esm";
+console.log(ns);