summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/node_modules_deno_node_modules
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/npm/node_modules_deno_node_modules')
-rw-r--r--cli/tests/testdata/npm/node_modules_deno_node_modules/main.out2
-rw-r--r--cli/tests/testdata/npm/node_modules_deno_node_modules/main.ts7
2 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/node_modules_deno_node_modules/main.out b/cli/tests/testdata/npm/node_modules_deno_node_modules/main.out
new file mode 100644
index 000000000..1ebdb2dd5
--- /dev/null
+++ b/cli/tests/testdata/npm/node_modules_deno_node_modules/main.out
@@ -0,0 +1,2 @@
+esm
+esm
diff --git a/cli/tests/testdata/npm/node_modules_deno_node_modules/main.ts b/cli/tests/testdata/npm/node_modules_deno_node_modules/main.ts
new file mode 100644
index 000000000..6e4a32d8e
--- /dev/null
+++ b/cli/tests/testdata/npm/node_modules_deno_node_modules/main.ts
@@ -0,0 +1,7 @@
+import { getKind as getKind1 } from "npm:@denotest/dual-cjs-esm-dep";
+// this should still be able to be resolved even though it's missing the
+// "@denotest/dual-cjs-esm" package because the above import will resolve it
+import { getKind as getKind2 } from "npm:@denotest/dual-cjs-esm-dep-missing";
+
+console.log(getKind1());
+console.log(getKind2());