summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/lsp_tests.rs1
-rw-r--r--cli/tests/integration/watcher_tests.rs3
-rw-r--r--cli/tests/testdata/041_dyn_import_eval.out1
-rw-r--r--cli/tests/testdata/055_info_file_json.out72
-rw-r--r--cli/tests/testdata/076_info_json_deps_order.out144
-rw-r--r--cli/tests/testdata/092_import_map_unmapped_bare_specifier.ts.out7
-rw-r--r--cli/tests/testdata/cafile_ts_fetch.ts.out1
-rw-r--r--cli/tests/testdata/cafile_ts_fetch_unsafe_ssl.ts.out1
-rw-r--r--cli/tests/testdata/compat/existing_import_map.out5
-rw-r--r--cli/tests/testdata/compiler_api_test.ts30
-rw-r--r--cli/tests/testdata/config.ts.out1
-rw-r--r--cli/tests/testdata/disallow_http_from_https_js.out3
-rw-r--r--cli/tests/testdata/disallow_http_from_https_ts.out3
-rw-r--r--cli/tests/testdata/dynamic_import/permissions_blob_local.ts.out4
-rw-r--r--cli/tests/testdata/dynamic_import/permissions_blob_remote.ts.out2
-rw-r--r--cli/tests/testdata/dynamic_import/permissions_data_local.ts.out2
-rw-r--r--cli/tests/testdata/dynamic_import/permissions_data_remote.ts.out2
-rw-r--r--cli/tests/testdata/dynamic_import/permissions_remote_remote.ts.out2
-rw-r--r--cli/tests/testdata/error_004_missing_module.ts.out4
-rw-r--r--cli/tests/testdata/error_005_missing_dynamic_import.ts.out2
-rw-r--r--cli/tests/testdata/error_006_import_ext_failure.ts.out4
-rw-r--r--cli/tests/testdata/error_011_bad_module_specifier.ts.out2
-rw-r--r--cli/tests/testdata/error_012_bad_dynamic_import_specifier.ts.out4
-rw-r--r--cli/tests/testdata/error_013_missing_script.out2
-rw-r--r--cli/tests/testdata/error_014_catch_dynamic_import_error.js.out14
-rw-r--r--cli/tests/testdata/error_015_dynamic_import_permissions.out3
-rw-r--r--cli/tests/testdata/error_016_dynamic_import_permissions2.out8
-rw-r--r--cli/tests/testdata/error_local_static_import_from_remote.js.out5
-rw-r--r--cli/tests/testdata/error_local_static_import_from_remote.ts.out5
-rw-r--r--cli/tests/testdata/error_missing_module_named_import.ts.out5
-rw-r--r--cli/tests/testdata/error_syntax.js.out2
-rw-r--r--cli/tests/testdata/error_syntax_empty_trailing_line.mjs.out2
-rw-r--r--cli/tests/testdata/import_blob_url_import_relative.ts.out2
-rw-r--r--cli/tests/testdata/import_data_url_import_relative.ts.out3
-rw-r--r--cli/tests/testdata/info_missing_module.out4
-rw-r--r--cli/tests/testdata/lint/expected_json.out2
-rw-r--r--cli/tests/testdata/localhost_unsafe_ssl.ts.out2
-rw-r--r--cli/tests/testdata/lock_check_err_with_bundle.out2
-rw-r--r--cli/tests/testdata/lock_dynamic_imports.out2
-rw-r--r--cli/tests/testdata/swc_syntax_error.ts.out2
-rw-r--r--cli/tests/testdata/ts_decorators_bundle.out2
-rw-r--r--cli/tests/testdata/ts_type_only_import.ts.out8
-rw-r--r--cli/tests/testdata/workers/nonexistent_worker.out2
-rw-r--r--cli/tests/testdata/workers/permissions_blob_local.ts.out2
-rw-r--r--cli/tests/testdata/workers/permissions_blob_remote.ts.out2
-rw-r--r--cli/tests/testdata/workers/permissions_data_local.ts.out2
-rw-r--r--cli/tests/testdata/workers/permissions_data_remote.ts.out2
-rw-r--r--cli/tests/testdata/workers/permissions_dynamic_remote.ts.out1
-rw-r--r--cli/tests/testdata/workers/permissions_remote_remote.ts.out2
49 files changed, 272 insertions, 116 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs
index 0b06beed4..215ba1a24 100644
--- a/cli/tests/integration/lsp_tests.rs
+++ b/cli/tests/integration/lsp_tests.rs
@@ -2761,7 +2761,6 @@ fn lsp_diagnostics_warn() {
.unwrap();
assert!(maybe_err.is_none());
assert!(maybe_res.is_some());
-
let (method, _) = client.read_notification::<Value>().unwrap();
assert_eq!(method, "textDocument/publishDiagnostics");
let (method, _) = client.read_notification::<Value>().unwrap();
diff --git a/cli/tests/integration/watcher_tests.rs b/cli/tests/integration/watcher_tests.rs
index 6148bcf2b..feda1bac7 100644
--- a/cli/tests/integration/watcher_tests.rs
+++ b/cli/tests/integration/watcher_tests.rs
@@ -206,6 +206,7 @@ fn bundle_js_watch() {
let (_stdout_lines, mut stderr_lines) = child_lines(&mut deno);
std::thread::sleep(std::time::Duration::from_secs(1));
+ assert_contains!(stderr_lines.next().unwrap(), "Check");
assert_contains!(stderr_lines.next().unwrap(), "file_to_watch.js");
assert_contains!(stderr_lines.next().unwrap(), "mod6.bundle.js");
let file = PathBuf::from(&bundle);
@@ -214,6 +215,7 @@ fn bundle_js_watch() {
write(&file_to_watch, "console.log('Hello world2');").unwrap();
std::thread::sleep(std::time::Duration::from_secs(1));
+ assert_contains!(stderr_lines.next().unwrap(), "Check");
assert_contains!(stderr_lines.next().unwrap(), "File change detected!");
assert_contains!(stderr_lines.next().unwrap(), "file_to_watch.js");
assert_contains!(stderr_lines.next().unwrap(), "mod6.bundle.js");
@@ -261,6 +263,7 @@ fn bundle_watch_not_exit() {
// Make sure the watcher actually restarts and works fine with the proper syntax
write(&file_to_watch, "console.log(42);").unwrap();
std::thread::sleep(std::time::Duration::from_secs(1));
+ assert_contains!(stderr_lines.next().unwrap(), "Check");
assert_contains!(stderr_lines.next().unwrap(), "File change detected!");
assert_contains!(stderr_lines.next().unwrap(), "file_to_watch.js");
assert_contains!(stderr_lines.next().unwrap(), "target.js");
diff --git a/cli/tests/testdata/041_dyn_import_eval.out b/cli/tests/testdata/041_dyn_import_eval.out
index 12a45b8da..a1d6c3687 100644
--- a/cli/tests/testdata/041_dyn_import_eval.out
+++ b/cli/tests/testdata/041_dyn_import_eval.out
@@ -1 +1,2 @@
+[WILDCARD]
Module { isMod4: true }
diff --git a/cli/tests/testdata/055_info_file_json.out b/cli/tests/testdata/055_info_file_json.out
index 4753ef0ef..a85bc83c4 100644
--- a/cli/tests/testdata/055_info_file_json.out
+++ b/cli/tests/testdata/055_info_file_json.out
@@ -1,53 +1,91 @@
{
- "root": "file://[WILDCARD]/005_more_imports.ts",
+ "roots": [
+ "file://[WILDCARD]/005_more_imports.ts"
+ ],
"modules": [
{
- "specifier": "file://[WILDCARD]/005_more_imports.ts",
"dependencies": [
{
"specifier": "./subdir/mod1.ts",
- "code": "file://[WILDCARD]/subdir/mod1.ts"
+ "code": {
+ "specifier": "file://[WILDCARD]/subdir/mod1.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 52
+ },
+ "end": {
+ "line": 0,
+ "character": 70
+ }
+ }
+ }
}
],
- "size": 211,
- "mediaType": "TypeScript",
"local": "[WILDCARD]005_more_imports.ts",
[WILDCARD]
+ "mediaType": "TypeScript",
+ [WILDCARD]
+ "specifier": "file://[WILDCARD]/005_more_imports.ts"
},
{
- "specifier": "file://[WILDCARD]/subdir/mod1.ts",
"dependencies": [
{
"specifier": "./subdir2/mod2.ts",
- "code": "file://[WILDCARD]/subdir/subdir2/mod2.ts"
+ "code": {
+ "specifier": "file://[WILDCARD]/subdir/subdir2/mod2.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 40
+ },
+ "end": {
+ "line": 0,
+ "character": 59
+ }
+ }
+ }
}
],
- "size": 308,
- "mediaType": "TypeScript",
"local": "[WILDCARD]mod1.ts",
[WILDCARD]
+ "mediaType": "TypeScript",
+ [WILDCARD]
+ "specifier": "file://[WILDCARD]/subdir/mod1.ts"
},
{
- "specifier": "file://[WILDCARD]/subdir/print_hello.ts",
"dependencies": [],
- "size": 57,
- "mediaType": "TypeScript",
"local": "[WILDCARD]print_hello.ts",
[WILDCARD]
+ "mediaType": "TypeScript",
+ [WILDCARD]
+ "specifier": "file://[WILDCARD]/subdir/print_hello.ts"
},
{
- "specifier": "file://[WILDCARD]/subdir/subdir2/mod2.ts",
"dependencies": [
{
"specifier": "../print_hello.ts",
- "code": "file://[WILDCARD]/subdir/print_hello.ts"
+ "code": {
+ "specifier": "file://[WILDCARD]/subdir/print_hello.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 27
+ },
+ "end": {
+ "line": 0,
+ "character": 46
+ }
+ }
+ }
}
],
- "size": 157,
- "mediaType": "TypeScript",
"local": "[WILDCARD]mod2.ts",
[WILDCARD]
+ "mediaType": "TypeScript",
+ [WILDCARD]
+ "specifier": "file://[WILDCARD]/subdir/subdir2/mod2.ts"
}
],
- "size": 733
+ "redirects": {}
}
diff --git a/cli/tests/testdata/076_info_json_deps_order.out b/cli/tests/testdata/076_info_json_deps_order.out
index bcb2c70ed..69727e6e8 100644
--- a/cli/tests/testdata/076_info_json_deps_order.out
+++ b/cli/tests/testdata/076_info_json_deps_order.out
@@ -1,78 +1,164 @@
{
- "root": "file://[WILDCARD]/076_info_json_deps_order.ts",
+ "roots": [
+ "file://[WILDCARD]/076_info_json_deps_order.ts"
+ ],
"modules": [
{
- "specifier": "file://[WILDCARD]/076_info_json_deps_order.ts",
"dependencies": [
{
"specifier": "./recursive_imports/A.ts",
- "code": "file://[WILDCARD]/recursive_imports/A.ts"
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/A.ts",
+ "span": {
+ "start": {
+ "line": 1,
+ "character": 18
+ },
+ "end": {
+ "line": 1,
+ "character": 44
+ }
+ }
+ }
}
],
- "size": 81,
- "mediaType": "TypeScript",
"local": "[WILDCARD]076_info_json_deps_order.ts",
- "checksum": "5dd40fe33e5924cca513489ce568e86c9b9fe318a87975403c8923629018680d"
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ [WILDCARD]
+ "specifier": "file://[WILDCARD]/076_info_json_deps_order.ts"
},
{
- "specifier": "file://[WILDCARD]/recursive_imports/A.ts",
"dependencies": [
{
"specifier": "./B.ts",
- "code": "file://[WILDCARD]/recursive_imports/B.ts"
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/B.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 18
+ },
+ "end": {
+ "line": 0,
+ "character": 26
+ }
+ }
+ }
},
{
"specifier": "./common.ts",
- "code": "file://[WILDCARD]/recursive_imports/common.ts"
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/common.ts",
+ "span": {
+ "start": {
+ "line": 1,
+ "character": 22
+ },
+ "end": {
+ "line": 1,
+ "character": 35
+ }
+ }
+ }
}
],
- "size": 108,
- "mediaType": "TypeScript",
"local": "[WILDCARD]A.ts",
- "checksum": "3b45a105d892584298490cb73372b2cac57118e1e42a677a1d5cacea704d8d3a"
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ [WILDCARD]
+ "specifier": "file://[WILDCARD]/recursive_imports/A.ts"
},
{
- "specifier": "file://[WILDCARD]/recursive_imports/B.ts",
"dependencies": [
{
"specifier": "./C.ts",
- "code": "file://[WILDCARD]/recursive_imports/C.ts"
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/C.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 18
+ },
+ "end": {
+ "line": 0,
+ "character": 26
+ }
+ }
+ }
},
{
"specifier": "./common.ts",
- "code": "file://[WILDCARD]/recursive_imports/common.ts"
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/common.ts",
+ "span": {
+ "start": {
+ "line": 1,
+ "character": 22
+ },
+ "end": {
+ "line": 1,
+ "character": 35
+ }
+ }
+ }
}
],
- "size": 108,
- "mediaType": "TypeScript",
"local": "[WILDCARD]B.ts",
- "checksum": "b12b0437ef9a91c4a4b1f66e8e4339f986b60bd8134031ccb296ce49df15b54e"
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ [WILDCARD]
+ "specifier": "file://[WILDCARD]/recursive_imports/B.ts"
},
{
- "specifier": "file://[WILDCARD]/recursive_imports/C.ts",
"dependencies": [
{
"specifier": "./A.ts",
- "code": "file://[WILDCARD]/recursive_imports/A.ts"
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/A.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 18
+ },
+ "end": {
+ "line": 0,
+ "character": 26
+ }
+ }
+ }
},
{
"specifier": "./common.ts",
- "code": "file://[WILDCARD]/recursive_imports/common.ts"
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/common.ts",
+ "span": {
+ "start": {
+ "line": 1,
+ "character": 22
+ },
+ "end": {
+ "line": 1,
+ "character": 35
+ }
+ }
+ }
}
],
- "size": 126,
- "mediaType": "TypeScript",
"local": "[WILDCARD]C.ts",
- "checksum": "605875a410741bfaeeade28cbccf45f219ad99d987ea695e35eda75d2c53a658"
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ [WILDCARD]
+ "specifier": "file://[WILDCARD]/recursive_imports/C.ts"
},
{
- "specifier": "file://[WILDCARD]/recursive_imports/common.ts",
"dependencies": [],
- "size": 28,
- "mediaType": "TypeScript",
"local": "[WILDCARD]common.ts",
- "checksum": "c70025f0b936c02980c3be1fbd78f6f36b6241927c44ea67580821a6e664d8b3"
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ [WILDCARD]
+ "specifier": "file://[WILDCARD]/recursive_imports/common.ts"
}
],
- "size": 451
+ "redirects": {}
}
diff --git a/cli/tests/testdata/092_import_map_unmapped_bare_specifier.ts.out b/cli/tests/testdata/092_import_map_unmapped_bare_specifier.ts.out
index 1a55e352b..6e82ad410 100644
--- a/cli/tests/testdata/092_import_map_unmapped_bare_specifier.ts.out
+++ b/cli/tests/testdata/092_import_map_unmapped_bare_specifier.ts.out
@@ -1,4 +1,7 @@
-[WILDCARD]error: Uncaught (in promise) TypeError: Relative import path "unmapped" not prefixed with / or ./ or ../ and not in import map from "[WILDCARD]"
+[WILDCARD]
+error: Uncaught (in promise) TypeError: Relative import path "unmapped" not prefixed with / or ./ or ../ and not in import map from "file://[WILDCARD]/092_import_map_unmapped_bare_specifier.ts"
+ at file://[WILDCARD]/092_import_map_unmapped_bare_specifier.ts:1:14
+
await import("unmapped");
^
- at [WILDCARD]
+ at async file://[WILDCARD]/092_import_map_unmapped_bare_specifier.ts:1:1
diff --git a/cli/tests/testdata/cafile_ts_fetch.ts.out b/cli/tests/testdata/cafile_ts_fetch.ts.out
index e965047ad..699b756ed 100644
--- a/cli/tests/testdata/cafile_ts_fetch.ts.out
+++ b/cli/tests/testdata/cafile_ts_fetch.ts.out
@@ -1 +1,2 @@
+[WILDCARD]
Hello
diff --git a/cli/tests/testdata/cafile_ts_fetch_unsafe_ssl.ts.out b/cli/tests/testdata/cafile_ts_fetch_unsafe_ssl.ts.out
index 1dc61c837..a0934e584 100644
--- a/cli/tests/testdata/cafile_ts_fetch_unsafe_ssl.ts.out
+++ b/cli/tests/testdata/cafile_ts_fetch_unsafe_ssl.ts.out
@@ -1,2 +1,3 @@
DANGER: TLS certificate validation is disabled for all hostnames
+[WILDCARD]
Hello
diff --git a/cli/tests/testdata/compat/existing_import_map.out b/cli/tests/testdata/compat/existing_import_map.out
index cbff0cc51..46125d411 100644
--- a/cli/tests/testdata/compat/existing_import_map.out
+++ b/cli/tests/testdata/compat/existing_import_map.out
@@ -1,6 +1,7 @@
[WILDCARD]
Some Node built-ins were not added to the import map:
- - "fs/promises" already exists and is mapped to "[WILDCARD]non_existent_file.js"
+ - "fs/promises" already exists and is mapped to "file://[WILDCARD]/non_existent_file.js"
If you want to use Node built-ins provided by Deno remove listed specifiers from "imports" mapping in the import map file.
[WILDCARD]
-error: Cannot resolve module [WILDCARD]
+error: Cannot load module "file://[WILDCARD]/non_existent_file.js".
+ at file://[WILDCARD]/fs_promises.js:1:16
diff --git a/cli/tests/testdata/compiler_api_test.ts b/cli/tests/testdata/compiler_api_test.ts
index 92eb4c519..b743a8612 100644
--- a/cli/tests/testdata/compiler_api_test.ts
+++ b/cli/tests/testdata/compiler_api_test.ts
@@ -313,10 +313,9 @@ Deno.test({
Deno.test({
name: "Deno.emit() - invalid syntax does not panic",
async fn() {
- await assertThrowsAsync(async () => {
- await Deno.emit("/main.js", {
- sources: {
- "/main.js": `
+ const { diagnostics } = await Deno.emit("/main.js", {
+ sources: {
+ "/main.js": `
export class Foo {
constructor() {
console.log("foo");
@@ -325,9 +324,14 @@ Deno.test({
console.log("bar");
}
}`,
- },
- });
+ },
});
+ assertEquals(diagnostics.length, 1);
+ assert(
+ diagnostics[0].messageText!.startsWith(
+ "The module's source code could not be parsed: Unexpected token `get`. Expected * for generator, private key, identifier or async at file:",
+ ),
+ );
},
});
@@ -356,12 +360,10 @@ Deno.test({
Deno.test({
name: "Deno.emit() - Unknown media type does not panic",
async fn() {
- await assertThrowsAsync(async () => {
- await Deno.emit("https://example.com/foo", {
- sources: {
- "https://example.com/foo": `let foo: string = "foo";`,
- },
- });
+ await Deno.emit("https://example.com/foo", {
+ sources: {
+ "https://example.com/foo": `let foo: string = "foo";`,
+ },
});
},
});
@@ -487,7 +489,7 @@ Deno.test({
code: 900001,
start: null,
end: null,
- messageText: "Unable to find specifier in sources: file:///b.ts",
+ messageText: 'Cannot load module "file:///b.ts".',
messageChain: null,
source: null,
sourceLine: null,
@@ -497,7 +499,7 @@ Deno.test({
]);
assert(
Deno.formatDiagnostics(diagnostics).includes(
- "Unable to find specifier in sources: file:///b.ts",
+ 'Cannot load module "file:///b.ts".',
),
);
},
diff --git a/cli/tests/testdata/config.ts.out b/cli/tests/testdata/config.ts.out
index 9f8a8ddd1..76e357a73 100644
--- a/cli/tests/testdata/config.ts.out
+++ b/cli/tests/testdata/config.ts.out
@@ -1,6 +1,7 @@
[WILDCARD]Unsupported compiler options in "[WILDCARD]config.tsconfig.json".
The following options were ignored:
module, target
+[WILDCARD]
error: TS1219 [ERROR]: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.
a() {
^
diff --git a/cli/tests/testdata/disallow_http_from_https_js.out b/cli/tests/testdata/disallow_http_from_https_js.out
index 3219b7d35..428078399 100644
--- a/cli/tests/testdata/disallow_http_from_https_js.out
+++ b/cli/tests/testdata/disallow_http_from_https_js.out
@@ -1,3 +1,4 @@
error: Modules imported via https are not allowed to import http modules.
Importing: http://localhost:4545/001_hello.js
- at https://localhost:5545/disallow_http_from_https.js:2:0
+ at https://localhost:5545/disallow_http_from_https.js:2:8
+
diff --git a/cli/tests/testdata/disallow_http_from_https_ts.out b/cli/tests/testdata/disallow_http_from_https_ts.out
index d1ab64394..bd986cbce 100644
--- a/cli/tests/testdata/disallow_http_from_https_ts.out
+++ b/cli/tests/testdata/disallow_http_from_https_ts.out
@@ -1,3 +1,4 @@
error: Modules imported via https are not allowed to import http modules.
Importing: http://localhost:4545/001_hello.js
- at https://localhost:5545/disallow_http_from_https.ts:2:0
+ at https://localhost:5545/disallow_http_from_https.ts:2:8
+
diff --git a/cli/tests/testdata/dynamic_import/permissions_blob_local.ts.out b/cli/tests/testdata/dynamic_import/permissions_blob_local.ts.out
index 6dfa8e527..b7b246ba2 100644
--- a/cli/tests/testdata/dynamic_import/permissions_blob_local.ts.out
+++ b/cli/tests/testdata/dynamic_import/permissions_blob_local.ts.out
@@ -1,5 +1,5 @@
error: Uncaught (in promise) TypeError: Requires read access to "[WILDCARD]local_file.ts", run again with the --allow-read flag
- at blob:null/[WILDCARD]:1:0
+ at blob:null/[WILDCARD]:1:8
await import(URL.createObjectURL(blob));
^
- at async file:///[WILDCARD]/dynamic_import/permissions_blob_local.ts:6:1
+ at async file://[WILDCARD]/permissions_blob_local.ts:6:1
diff --git a/cli/tests/testdata/dynamic_import/permissions_blob_remote.ts.out b/cli/tests/testdata/dynamic_import/permissions_blob_remote.ts.out
index 60d71ed6d..a00c02d72 100644
--- a/cli/tests/testdata/dynamic_import/permissions_blob_remote.ts.out
+++ b/cli/tests/testdata/dynamic_import/permissions_blob_remote.ts.out
@@ -1,5 +1,5 @@
error: Uncaught (in promise) TypeError: Requires net access to "example.com", run again with the --allow-net flag
- at blob:null/[WILDCARD]:1:0
+ at blob:null/[WILDCARD]:1:8
await import(URL.createObjectURL(blob));
^
at async file:///[WILDCARD]/dynamic_import/permissions_blob_remote.ts:4:1
diff --git a/cli/tests/testdata/dynamic_import/permissions_data_local.ts.out b/cli/tests/testdata/dynamic_import/permissions_data_local.ts.out
index c9fcb0a17..98c8a7310 100644
--- a/cli/tests/testdata/dynamic_import/permissions_data_local.ts.out
+++ b/cli/tests/testdata/dynamic_import/permissions_data_local.ts.out
@@ -1,5 +1,5 @@
error: Uncaught (in promise) TypeError: Requires read access to "[WILDCARD]local_file.ts", run again with the --allow-read flag
- at data:application/javascript;base64,[WILDCARD]:1:0
+ at data:application/javascript;base64,[WILDCARD]:1:8
await import(`data:application/javascript;base64,${btoa(code)}`);
^
at async file:///[WILDCARD]/dynamic_import/permissions_data_local.ts:5:1
diff --git a/cli/tests/testdata/dynamic_import/permissions_data_remote.ts.out b/cli/tests/testdata/dynamic_import/permissions_data_remote.ts.out
index 772f0b51e..cb2a7ccf7 100644
--- a/cli/tests/testdata/dynamic_import/permissions_data_remote.ts.out
+++ b/cli/tests/testdata/dynamic_import/permissions_data_remote.ts.out
@@ -1,5 +1,5 @@
error: Uncaught (in promise) TypeError: Requires net access to "example.com", run again with the --allow-net flag
- at data:application/javascript;base64,aW1wb3J0ICJodHRwczovL2V4YW1wbGUuY29tL3NvbWUvZmlsZS50cyI7:1:0
+ at data:application/javascript;base64,aW1wb3J0ICJodHRwczovL2V4YW1wbGUuY29tL3NvbWUvZmlsZS50cyI7:1:8
await import(`data:application/javascript;base64,${btoa(code)}`);
^
at async file:///[WILDCARD]/dynamic_import/permissions_data_remote.ts:3:1
diff --git a/cli/tests/testdata/dynamic_import/permissions_remote_remote.ts.out b/cli/tests/testdata/dynamic_import/permissions_remote_remote.ts.out
index cd7f58bb9..bd88dd4d9 100644
--- a/cli/tests/testdata/dynamic_import/permissions_remote_remote.ts.out
+++ b/cli/tests/testdata/dynamic_import/permissions_remote_remote.ts.out
@@ -1,5 +1,5 @@
error: Uncaught (in promise) TypeError: Requires net access to "example.com", run again with the --allow-net flag
- at http://localhost:4545/dynamic_import/static_remote.ts:2:0
+ at http://localhost:4545/dynamic_import/static_remote.ts:2:8
await import(
^
at async file:///[WILDCARD]/dynamic_import/permissions_remote_remote.ts:1:1
diff --git a/cli/tests/testdata/error_004_missing_module.ts.out b/cli/tests/testdata/error_004_missing_module.ts.out
index 8521f4424..798ffc007 100644
--- a/cli/tests/testdata/error_004_missing_module.ts.out
+++ b/cli/tests/testdata/error_004_missing_module.ts.out
@@ -1,2 +1,2 @@
-[WILDCARD]error: Cannot resolve module "file:///[WILDCARD]/bad-module.ts" from "file:///[WILDCARD]/error_004_missing_module.ts".
- at file:///[WILDCARD]/error_004_missing_module.ts:1:0
+[WILDCARD]error: Cannot load module "file:///[WILDCARD]/bad-module.ts".
+ at file:///[WILDCARD]/error_004_missing_module.ts:1:28
diff --git a/cli/tests/testdata/error_005_missing_dynamic_import.ts.out b/cli/tests/testdata/error_005_missing_dynamic_import.ts.out
index e8647a44e..0ca35bd3b 100644
--- a/cli/tests/testdata/error_005_missing_dynamic_import.ts.out
+++ b/cli/tests/testdata/error_005_missing_dynamic_import.ts.out
@@ -1,4 +1,4 @@
-error: Uncaught (in promise) TypeError: Cannot resolve module "[WILDCARD]/bad-module.ts".
+error: Uncaught (in promise) TypeError: Cannot load module "[WILDCARD]/bad-module.ts".
const _badModule = await import("./bad-module.ts");
^
at async file://[WILDCARD]/error_005_missing_dynamic_import.ts:2:22
diff --git a/cli/tests/testdata/error_006_import_ext_failure.ts.out b/cli/tests/testdata/error_006_import_ext_failure.ts.out
index 24d819e5d..bffbafc7a 100644
--- a/cli/tests/testdata/error_006_import_ext_failure.ts.out
+++ b/cli/tests/testdata/error_006_import_ext_failure.ts.out
@@ -1,2 +1,2 @@
-[WILDCARD]error: Cannot resolve module "[WILDCARD]/non-existent" from "[WILDCARD]/error_006_import_ext_failure.ts".
- at file:///[WILDCARD]/error_006_import_ext_failure.ts:1:0
+[WILDCARD]error: Cannot load module "[WILDCARD]/non-existent".
+ at file:///[WILDCARD]/error_006_import_ext_failure.ts:1:8
diff --git a/cli/tests/testdata/error_011_bad_module_specifier.ts.out b/cli/tests/testdata/error_011_bad_module_specifier.ts.out
index 713072191..9ee9fd4d1 100644
--- a/cli/tests/testdata/error_011_bad_module_specifier.ts.out
+++ b/cli/tests/testdata/error_011_bad_module_specifier.ts.out
@@ -1 +1,3 @@
[WILDCARD]error: Relative import path "bad-module.ts" not prefixed with / or ./ or ../ from "[WILDCARD]/error_011_bad_module_specifier.ts"
+ at [WILDCARD]/error_011_bad_module_specifier.ts:1:28
+
diff --git a/cli/tests/testdata/error_012_bad_dynamic_import_specifier.ts.out b/cli/tests/testdata/error_012_bad_dynamic_import_specifier.ts.out
index 0d0b168a4..7ea32f682 100644
--- a/cli/tests/testdata/error_012_bad_dynamic_import_specifier.ts.out
+++ b/cli/tests/testdata/error_012_bad_dynamic_import_specifier.ts.out
@@ -1,5 +1,7 @@
Check [WILDCARD]error_012_bad_dynamic_import_specifier.ts
error: Uncaught (in promise) TypeError: Relative import path "bad-module.ts" not prefixed with / or ./ or ../ from "[WILDCARD]/error_012_bad_dynamic_import_specifier.ts"
+ at [WILDCARD]/error_012_bad_dynamic_import_specifier.ts:2:35
+
const _badModule = await import("bad-module.ts");
^
- at async file:///[WILDCARD]/error_012_bad_dynamic_import_specifier.ts:2:22
+ at async [WILDCARD]/error_012_bad_dynamic_import_specifier.ts:2:22
diff --git a/cli/tests/testdata/error_013_missing_script.out b/cli/tests/testdata/error_013_missing_script.out
index d1c257bdb..fdd7aa27e 100644
--- a/cli/tests/testdata/error_013_missing_script.out
+++ b/cli/tests/testdata/error_013_missing_script.out
@@ -1 +1 @@
-error: Cannot resolve module "[WILDCARD]missing_file_name".
+error: Cannot load module "[WILDCARD]missing_file_name".
diff --git a/cli/tests/testdata/error_014_catch_dynamic_import_error.js.out b/cli/tests/testdata/error_014_catch_dynamic_import_error.js.out
index 8f2d695f7..b19d87515 100644
--- a/cli/tests/testdata/error_014_catch_dynamic_import_error.js.out
+++ b/cli/tests/testdata/error_014_catch_dynamic_import_error.js.out
@@ -1,12 +1,16 @@
Caught direct dynamic import error.
TypeError: Relative import path "does not exist" not prefixed with / or ./ or ../ from "[WILDCARD]/error_014_catch_dynamic_import_error.js"
- at async file:///[WILDCARD]/error_014_catch_dynamic_import_error.js:3:5
+ at [WILDCARD]/error_014_catch_dynamic_import_error.js:3:18
+
+ at async [WILDCARD]/error_014_catch_dynamic_import_error.js:3:5
Caught indirect direct dynamic import error.
-TypeError: Relative import path "does not exist either" not prefixed with / or ./ or ../ from "[WILDCARD]/indirect_import_error.js"
- at async file:///[WILDCARD]/error_014_catch_dynamic_import_error.js:10:5
+TypeError: Relative import path "does not exist either" not prefixed with / or ./ or ../ from "[WILDCARD]/subdir/indirect_import_error.js"
+ at [WILDCARD]/subdir/indirect_import_error.js:1:15
+
+ at async [WILDCARD]/error_014_catch_dynamic_import_error.js:10:5
Caught error thrown by dynamically imported module.
Error: An error
- at file:///[WILDCARD]/subdir/throws.js:6:7
+ at [WILDCARD]/subdir/throws.js:6:7
Caught error thrown indirectly by dynamically imported module.
Error: An error
- at file:///[WILDCARD]/subdir/throws.js:6:7
+ at [WILDCARD]/subdir/throws.js:6:7
diff --git a/cli/tests/testdata/error_015_dynamic_import_permissions.out b/cli/tests/testdata/error_015_dynamic_import_permissions.out
index a509cfdab..42fb0a15d 100644
--- a/cli/tests/testdata/error_015_dynamic_import_permissions.out
+++ b/cli/tests/testdata/error_015_dynamic_import_permissions.out
@@ -1,4 +1,5 @@
error: Uncaught (in promise) TypeError: Requires net access to "localhost:4545", run again with the --allow-net flag
+ at file://[WILDCARD]/error_015_dynamic_import_permissions.js:2:16
await import("http://localhost:4545/subdir/mod4.js");
^
- at async file:///[WILDCARD]/error_015_dynamic_import_permissions.js:2:3
+ at async file://[WILDCARD]/error_015_dynamic_import_permissions.js:2:3
diff --git a/cli/tests/testdata/error_016_dynamic_import_permissions2.out b/cli/tests/testdata/error_016_dynamic_import_permissions2.out
index 0b43c5b91..bdfddb9ed 100644
--- a/cli/tests/testdata/error_016_dynamic_import_permissions2.out
+++ b/cli/tests/testdata/error_016_dynamic_import_permissions2.out
@@ -1,4 +1,8 @@
[WILDCARD]
-error: Remote modules are not allowed to import local modules. Consider using a dynamic import instead.
+error: Uncaught (in promise) TypeError: Remote modules are not allowed to import local modules. Consider using a dynamic import instead.
Importing: file:///c:/etc/passwd
- at http://localhost:4545/subdir/evil_remote_import.js:3:0
+ at http://localhost:4545/subdir/evil_remote_import.js:3:15
+
+ await import("http://localhost:4545/subdir/evil_remote_import.js");
+ ^
+ at async file://[WILDCARD]/error_016_dynamic_import_permissions2.js:4:3
diff --git a/cli/tests/testdata/error_local_static_import_from_remote.js.out b/cli/tests/testdata/error_local_static_import_from_remote.js.out
index 44b676532..8904bae29 100644
--- a/cli/tests/testdata/error_local_static_import_from_remote.js.out
+++ b/cli/tests/testdata/error_local_static_import_from_remote.js.out
@@ -1,4 +1,5 @@
[WILDCARD]
-error: Remote modules are not allowed to import local modules. Consider using a dynamic import instead.
+error: Remote modules are not allowed to import local modules. Consider using a dynamic import instead.
Importing: file:///some/dir/file.js
- at http://localhost:4545/error_local_static_import_from_remote.js:1:0
+ at http://localhost:4545/error_local_static_import_from_remote.js:1:8
+
diff --git a/cli/tests/testdata/error_local_static_import_from_remote.ts.out b/cli/tests/testdata/error_local_static_import_from_remote.ts.out
index f8f409de0..b06a12454 100644
--- a/cli/tests/testdata/error_local_static_import_from_remote.ts.out
+++ b/cli/tests/testdata/error_local_static_import_from_remote.ts.out
@@ -1,4 +1,5 @@
[WILDCARD]
-error: Remote modules are not allowed to import local modules. Consider using a dynamic import instead.
+error: Remote modules are not allowed to import local modules. Consider using a dynamic import instead.
Importing: file:///some/dir/file.ts
- at http://localhost:4545/error_local_static_import_from_remote.ts:1:0
+ at http://localhost:4545/error_local_static_import_from_remote.ts:1:8
+
diff --git a/cli/tests/testdata/error_missing_module_named_import.ts.out b/cli/tests/testdata/error_missing_module_named_import.ts.out
index 6f09f0c0d..9569dd9a9 100644
--- a/cli/tests/testdata/error_missing_module_named_import.ts.out
+++ b/cli/tests/testdata/error_missing_module_named_import.ts.out
@@ -1,2 +1,3 @@
-error: Cannot resolve module "[WILDCARD]/does_not_exist.js" from "[WILDCARD]/error_missing_module_named_import.ts".
- at [WILDCARD]/error_missing_module_named_import.ts:1:0
+[WILDCARD]
+error: Cannot load module "file://[WILDCARD]/does_not_exist.js".
+ at file://[WILDCARD]/error_missing_module_named_import.ts:1:19
diff --git a/cli/tests/testdata/error_syntax.js.out b/cli/tests/testdata/error_syntax.js.out
index 84f924f8f..6d3f05b8e 100644
--- a/cli/tests/testdata/error_syntax.js.out
+++ b/cli/tests/testdata/error_syntax.js.out
@@ -1 +1 @@
-error: Expected ,, got following at [WILDCARD]/error_syntax.js:3:6
+error: The module's source code could not be parsed: Expected ',', got 'following' at [WILDCARD]/error_syntax.js:3:6
diff --git a/cli/tests/testdata/error_syntax_empty_trailing_line.mjs.out b/cli/tests/testdata/error_syntax_empty_trailing_line.mjs.out
index 8b4feeb49..f4bbc6708 100644
--- a/cli/tests/testdata/error_syntax_empty_trailing_line.mjs.out
+++ b/cli/tests/testdata/error_syntax_empty_trailing_line.mjs.out
@@ -1 +1 @@
-error: Unexpected eof at [WILDCARD]/error_syntax_empty_trailing_line.mjs:2:22
+error: The module's source code could not be parsed: Unexpected eof at [WILDCARD]/error_syntax_empty_trailing_line.mjs:2:22
diff --git a/cli/tests/testdata/import_blob_url_import_relative.ts.out b/cli/tests/testdata/import_blob_url_import_relative.ts.out
index 77f399763..75e5fe811 100644
--- a/cli/tests/testdata/import_blob_url_import_relative.ts.out
+++ b/cli/tests/testdata/import_blob_url_import_relative.ts.out
@@ -1,4 +1,6 @@
error: Uncaught (in promise) TypeError: invalid URL: relative URL with a cannot-be-a-base base
+ at blob:null/[WILDCARD]:1:19
+
const a = await import(url);
^
at async file://[WILDCARD]/import_blob_url_import_relative.ts:6:11
diff --git a/cli/tests/testdata/import_data_url_import_relative.ts.out b/cli/tests/testdata/import_data_url_import_relative.ts.out
index 1f4f3e9ef..ed1a37208 100644
--- a/cli/tests/testdata/import_data_url_import_relative.ts.out
+++ b/cli/tests/testdata/import_data_url_import_relative.ts.out
@@ -1,4 +1,3 @@
error: invalid URL: relative URL with a cannot-be-a-base base
+ at data:application/javascript;base64,ZXhwb3J0IHsgYSB9IGZyb20gIi4vYS50cyI7Cg==:1:19
-Caused by:
- relative URL with a cannot-be-a-base base
diff --git a/cli/tests/testdata/info_missing_module.out b/cli/tests/testdata/info_missing_module.out
index 75b077407..07f893eec 100644
--- a/cli/tests/testdata/info_missing_module.out
+++ b/cli/tests/testdata/info_missing_module.out
@@ -1,6 +1,6 @@
local: [WILDCARD]error_009_missing_js_module.js
type: JavaScript
-dependencies: 1 unique (total 26B)
+dependencies: 0 unique (total 26B)
file://[WILDCARD]/error_009_missing_js_module.js (26B)
-└── file://[WILDCARD]/bad-module.js (error)
+└── file://[WILDCARD]/bad-module.js (missing)
diff --git a/cli/tests/testdata/lint/expected_json.out b/cli/tests/testdata/lint/expected_json.out
index 9af79ce3d..876aec9e0 100644
--- a/cli/tests/testdata/lint/expected_json.out
+++ b/cli/tests/testdata/lint/expected_json.out
@@ -58,7 +58,7 @@
"errors": [
{
"file_path": "[WILDCARD]malformed.js",
- "message": "Expected }, got <eof> at [WILDCARD]malformed.js:4:16"
+ "message": "Expected '}', got '<eof>' at [WILDCARD]malformed.js:4:16"
}
]
}
diff --git a/cli/tests/testdata/localhost_unsafe_ssl.ts.out b/cli/tests/testdata/localhost_unsafe_ssl.ts.out
index c482bd81c..b3f895d6e 100644
--- a/cli/tests/testdata/localhost_unsafe_ssl.ts.out
+++ b/cli/tests/testdata/localhost_unsafe_ssl.ts.out
@@ -1,3 +1,3 @@
DANGER: TLS certificate validation is disabled for: deno.land
error: error sending request for url (https://localhost:5545/subdir/mod2.ts): error trying to connect: invalid certificate: UnknownIssuer
- at [WILDCARD]/cafile_url_imports.ts:1:0
+ at file://[WILDCARD]/cafile_url_imports.ts:1:28
diff --git a/cli/tests/testdata/lock_check_err_with_bundle.out b/cli/tests/testdata/lock_check_err_with_bundle.out
index a47cbc606..a20e9b3af 100644
--- a/cli/tests/testdata/lock_check_err_with_bundle.out
+++ b/cli/tests/testdata/lock_check_err_with_bundle.out
@@ -1,4 +1,4 @@
[WILDCARD]
-The source code is invalid, as it does not match the expected hash in the lock file.
+error: The source code is invalid, as it does not match the expected hash in the lock file.
Specifier: http://127.0.0.1:4545/subdir/subdir2/mod2.ts
Lock file: lock_check_err_with_bundle.json
diff --git a/cli/tests/testdata/lock_dynamic_imports.out b/cli/tests/testdata/lock_dynamic_imports.out
index e5c76c8f0..601d2282b 100644
--- a/cli/tests/testdata/lock_dynamic_imports.out
+++ b/cli/tests/testdata/lock_dynamic_imports.out
@@ -1,4 +1,4 @@
[WILDCARD]
-The source code is invalid, as it does not match the expected hash in the lock file.
+error: The source code is invalid, as it does not match the expected hash in the lock file.
Specifier: http://127.0.0.1:4545/subdir/subdir2/mod2.ts
Lock file: lock_dynamic_imports.json
diff --git a/cli/tests/testdata/swc_syntax_error.ts.out b/cli/tests/testdata/swc_syntax_error.ts.out
index 98a753459..c968db5e9 100644
--- a/cli/tests/testdata/swc_syntax_error.ts.out
+++ b/cli/tests/testdata/swc_syntax_error.ts.out
@@ -1 +1 @@
-error: Unexpected token `}`. Expected an identifier, void, yield, null, await, break, a string literal, a numeric literal, true, false, `, -, import, this, typeof, {, [, ( at [WILDCARD]syntax_error.ts:4:1
+error: The module's source code could not be parsed: Unexpected token `}`. Expected an identifier, void, yield, null, await, break, a string literal, a numeric literal, true, false, `, -, import, this, typeof, {, [, ( at [WILDCARD]syntax_error.ts:4:1
diff --git a/cli/tests/testdata/ts_decorators_bundle.out b/cli/tests/testdata/ts_decorators_bundle.out
index a5b77b7bf..98f3733bf 100644
--- a/cli/tests/testdata/ts_decorators_bundle.out
+++ b/cli/tests/testdata/ts_decorators_bundle.out
@@ -1,5 +1,5 @@
[WILDCARD]
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
[WILDCARD]
-new SomeClass().test();
+new SomeClass[WILDCARD].test();
[WILDCARD] \ No newline at end of file
diff --git a/cli/tests/testdata/ts_type_only_import.ts.out b/cli/tests/testdata/ts_type_only_import.ts.out
index f808ed21a..9304a987e 100644
--- a/cli/tests/testdata/ts_type_only_import.ts.out
+++ b/cli/tests/testdata/ts_type_only_import.ts.out
@@ -1,4 +1,4 @@
-Check [WILDCARD]ts_type_only_import.ts
-warning: Compiled module not found "[WILDCARD]ts_type_only_import.d.ts"
- From: [WILDCARD]ts_type_only_import.ts
- If the source module contains only types, use `import type` and `export type` to import it instead.
+Check file://[WILDCARD]/ts_type_only_import.ts
+warning: Cannot load module "file://[WILDCARD]/ts_type_only_import.d.ts".
+ at file://[WILDCARD]/ts_type_only_import.ts:1:15
+ If the source module contains only types, use `import type` and `export type` to import it instead.
diff --git a/cli/tests/testdata/workers/nonexistent_worker.out b/cli/tests/testdata/workers/nonexistent_worker.out
index 99e94bfc9..5280e22d1 100644
--- a/cli/tests/testdata/workers/nonexistent_worker.out
+++ b/cli/tests/testdata/workers/nonexistent_worker.out
@@ -1,3 +1,3 @@
-[WILDCARD]error: Uncaught (in worker "") Cannot resolve module "file:///[WILDCARD]/workers/doesnt_exist.js".
+[WILDCARD]error: Uncaught (in worker "") Cannot load module "file:///[WILDCARD]/workers/doesnt_exist.js".
error: Uncaught (in promise) Error: Unhandled error event in child worker.
at Worker.#pollControl ([WILDCARD])
diff --git a/cli/tests/testdata/workers/permissions_blob_local.ts.out b/cli/tests/testdata/workers/permissions_blob_local.ts.out
index b35d1d4db..ee19c7ab5 100644
--- a/cli/tests/testdata/workers/permissions_blob_local.ts.out
+++ b/cli/tests/testdata/workers/permissions_blob_local.ts.out
@@ -1,4 +1,4 @@
error: Uncaught (in worker "") Requires read access to "[WILDCARD]local_file.ts", run again with the --allow-read flag
- at blob:null/[WILDCARD]:1:0
+ at blob:null/[WILDCARD]:1:8
error: Uncaught (in promise) Error: Unhandled error event in child worker.
at Worker.#pollControl ([WILDCARD])
diff --git a/cli/tests/testdata/workers/permissions_blob_remote.ts.out b/cli/tests/testdata/workers/permissions_blob_remote.ts.out
index 26936971a..597e5bf1e 100644
--- a/cli/tests/testdata/workers/permissions_blob_remote.ts.out
+++ b/cli/tests/testdata/workers/permissions_blob_remote.ts.out
@@ -1,4 +1,4 @@
error: Uncaught (in worker "") Requires net access to "example.com", run again with the --allow-net flag
- at blob:null/[WILDCARD]:1:0
+ at blob:null/[WILDCARD]:1:8
error: Uncaught (in promise) Error: Unhandled error event in child worker.
at Worker.#pollControl ([WILDCARD])
diff --git a/cli/tests/testdata/workers/permissions_data_local.ts.out b/cli/tests/testdata/workers/permissions_data_local.ts.out
index 1e8c5fffa..5c9bcf1c1 100644
--- a/cli/tests/testdata/workers/permissions_data_local.ts.out
+++ b/cli/tests/testdata/workers/permissions_data_local.ts.out
@@ -1,4 +1,4 @@
error: Uncaught (in worker "") Requires read access to "[WILDCARD]local_file.ts", run again with the --allow-read flag
- at data:application/javascript;base64,[WILDCARD]:1:0
+ at data:application/javascript;base64,[WILDCARD]:1:8
error: Uncaught (in promise) Error: Unhandled error event in child worker.
at Worker.#pollControl ([WILDCARD])
diff --git a/cli/tests/testdata/workers/permissions_data_remote.ts.out b/cli/tests/testdata/workers/permissions_data_remote.ts.out
index 92eadf284..0273664bd 100644
--- a/cli/tests/testdata/workers/permissions_data_remote.ts.out
+++ b/cli/tests/testdata/workers/permissions_data_remote.ts.out
@@ -1,4 +1,4 @@
error: Uncaught (in worker "") Requires net access to "example.com", run again with the --allow-net flag
- at data:application/javascript;base64,aW1wb3J0ICJodHRwczovL2V4YW1wbGUuY29tL3NvbWUvZmlsZS50cyI7:1:0
+ at data:application/javascript;base64,aW1wb3J0ICJodHRwczovL2V4YW1wbGUuY29tL3NvbWUvZmlsZS50cyI7:1:8
error: Uncaught (in promise) Error: Unhandled error event in child worker.
at Worker.#pollControl ([WILDCARD])
diff --git a/cli/tests/testdata/workers/permissions_dynamic_remote.ts.out b/cli/tests/testdata/workers/permissions_dynamic_remote.ts.out
index e5015abff..57a922391 100644
--- a/cli/tests/testdata/workers/permissions_dynamic_remote.ts.out
+++ b/cli/tests/testdata/workers/permissions_dynamic_remote.ts.out
@@ -1,4 +1,5 @@
error: Uncaught (in worker "") (in promise) TypeError: Requires net access to "example.com", run again with the --allow-net flag
+ at http://localhost:4545/workers/dynamic_remote.ts:2:14
await import("https://example.com/some/file.ts");
^
at async http://localhost:4545/workers/dynamic_remote.ts:2:1
diff --git a/cli/tests/testdata/workers/permissions_remote_remote.ts.out b/cli/tests/testdata/workers/permissions_remote_remote.ts.out
index 8998891a3..42602cf71 100644
--- a/cli/tests/testdata/workers/permissions_remote_remote.ts.out
+++ b/cli/tests/testdata/workers/permissions_remote_remote.ts.out
@@ -1,4 +1,4 @@
error: Uncaught (in worker "") Requires net access to "example.com", run again with the --allow-net flag
- at http://localhost:4545/workers/static_remote.ts:2:0
+ at http://localhost:4545/workers/static_remote.ts:2:8
error: Uncaught (in promise) Error: Unhandled error event in child worker.
at Worker.#pollControl ([WILDCARD])