summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/tests/testdata/run/import_meta/main.out2
-rw-r--r--cli/tests/testdata/run/import_meta/main.ts5
2 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/import_meta/main.out b/cli/tests/testdata/run/import_meta/main.out
index 89aeddaf3..1b51f1cdf 100644
--- a/cli/tests/testdata/run/import_meta/main.out
+++ b/cli/tests/testdata/run/import_meta/main.out
@@ -7,3 +7,5 @@ Resolving without a value from import map https://example.com/PASS-undefined
Resolving 1 from import map https://example.com/PASS-1
Resolving null from import map https://example.com/PASS-null
Resolving object from import map https://example.com/PASS-object
+TypeError: "npm:" specifiers are currently not supported in import.meta.resolve()
+ at file:///[WILDCARD]testdata/run/import_meta/main.ts:36:15
diff --git a/cli/tests/testdata/run/import_meta/main.ts b/cli/tests/testdata/run/import_meta/main.ts
index 02f0a1c58..0d7cb96da 100644
--- a/cli/tests/testdata/run/import_meta/main.ts
+++ b/cli/tests/testdata/run/import_meta/main.ts
@@ -32,3 +32,8 @@ assertThrows(() => {
assertThrows(() => {
import.meta.resolve("://malformed/url?asdf");
}, TypeError);
+try {
+ import.meta.resolve("npm:cowsay");
+} catch (e) {
+ console.log(e);
+}