summaryrefslogtreecommitdiff
path: root/tests/testdata/npm/cjs_pkg_imports
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/npm/cjs_pkg_imports')
-rw-r--r--tests/testdata/npm/cjs_pkg_imports/main.out3
-rw-r--r--tests/testdata/npm/cjs_pkg_imports/main.ts3
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/testdata/npm/cjs_pkg_imports/main.out b/tests/testdata/npm/cjs_pkg_imports/main.out
new file mode 100644
index 000000000..b2df56f80
--- /dev/null
+++ b/tests/testdata/npm/cjs_pkg_imports/main.out
@@ -0,0 +1,3 @@
+Download http://localhost:4545/npm/registry/@denotest/cjs-pkg-imports
+Download http://localhost:4545/npm/registry/@denotest/cjs-pkg-imports/1.0.0.tgz
+{ crypto: Crypto { subtle: SubtleCrypto {} }, number: 5 }
diff --git a/tests/testdata/npm/cjs_pkg_imports/main.ts b/tests/testdata/npm/cjs_pkg_imports/main.ts
new file mode 100644
index 000000000..b30a3f85c
--- /dev/null
+++ b/tests/testdata/npm/cjs_pkg_imports/main.ts
@@ -0,0 +1,3 @@
+import crypto from "npm:@denotest/cjs-pkg-imports";
+
+console.log(crypto);