summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-11-07 15:04:22 +1100
committerGitHub <noreply@github.com>2020-11-07 15:04:22 +1100
commit88c4d3145b1e964387be487090bb6ec0a572b90f (patch)
tree8da4c2d5bf6c36bbb9cb0b0359433708f48328c7 /cli/tests
parent4f67f0cc6033983540ed51f1270fb420cac45487 (diff)
fix(cli): allow remapping to locals for import map (#8262)
Fixes #7723
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/module_graph/file_tests-b-mod.js1
-rw-r--r--cli/tests/module_graph/file_tests-importremap.ts3
-rw-r--r--cli/tests/module_graph/https_deno.land-x-a-mod.ts1
3 files changed, 5 insertions, 0 deletions
diff --git a/cli/tests/module_graph/file_tests-b-mod.js b/cli/tests/module_graph/file_tests-b-mod.js
new file mode 100644
index 000000000..59d168993
--- /dev/null
+++ b/cli/tests/module_graph/file_tests-b-mod.js
@@ -0,0 +1 @@
+export const b = "b";
diff --git a/cli/tests/module_graph/file_tests-importremap.ts b/cli/tests/module_graph/file_tests-importremap.ts
new file mode 100644
index 000000000..17f012673
--- /dev/null
+++ b/cli/tests/module_graph/file_tests-importremap.ts
@@ -0,0 +1,3 @@
+import * as a from "https://deno.land/x/a/mod.ts";
+
+console.log(a);
diff --git a/cli/tests/module_graph/https_deno.land-x-a-mod.ts b/cli/tests/module_graph/https_deno.land-x-a-mod.ts
new file mode 100644
index 000000000..1e334d399
--- /dev/null
+++ b/cli/tests/module_graph/https_deno.land-x-a-mod.ts
@@ -0,0 +1 @@
+export * as b from "../b/mod.js";