diff options
Diffstat (limited to 'cli/tests')
37 files changed, 9 insertions, 47 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 0edfe1c48..be9bc554a 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -870,7 +870,7 @@ itest!(lock_write_fetch { itest!(lock_check_ok { args: - "run --lock=run/lock_check_ok.json http://127.0.0.1:4545/run/003_relative_import.ts", + "run --quiet --lock=run/lock_check_ok.json http://127.0.0.1:4545/run/003_relative_import.ts", output: "run/003_relative_import.ts.out", http_server: true, }); @@ -917,7 +917,7 @@ itest!(lock_flag_overrides_config_file_lock_path { itest!(lock_v2_check_ok { args: - "run --lock=run/lock_v2_check_ok.json http://127.0.0.1:4545/run/003_relative_import.ts", + "run --quiet --lock=run/lock_v2_check_ok.json http://127.0.0.1:4545/run/003_relative_import.ts", output: "run/003_relative_import.ts.out", http_server: true, }); diff --git a/cli/tests/testdata/error_cause_recursive_aggregate.ts.out b/cli/tests/testdata/error_cause_recursive_aggregate.ts.out index bf1e45e51..652403e4a 100644 --- a/cli/tests/testdata/error_cause_recursive_aggregate.ts.out +++ b/cli/tests/testdata/error_cause_recursive_aggregate.ts.out @@ -1,4 +1,3 @@ -[WILDCARD] error: Uncaught AggregateError Error: bar <ref *1> at file:///[WILDCARD]/error_cause_recursive_aggregate.ts:2:13 diff --git a/cli/tests/testdata/error_cause_recursive_tail.ts.out b/cli/tests/testdata/error_cause_recursive_tail.ts.out index 48b65d3f4..e19fa39bc 100644 --- a/cli/tests/testdata/error_cause_recursive_tail.ts.out +++ b/cli/tests/testdata/error_cause_recursive_tail.ts.out @@ -1,4 +1,3 @@ -[WILDCARD] error: Uncaught Error: baz const baz = new Error("baz", { cause: bar }); ^ @@ -8,4 +7,3 @@ Caused by: Error: bar <ref *1> Caused by: Error: foo at file:///[WILDCARD]/error_cause_recursive_tail.ts:1:13 Caused by: [Circular *1] -[WILDCARD] diff --git a/cli/tests/testdata/eval/dyn_import_eval.out b/cli/tests/testdata/eval/dyn_import_eval.out index bbc53b558..89e16b478 100644 --- a/cli/tests/testdata/eval/dyn_import_eval.out +++ b/cli/tests/testdata/eval/dyn_import_eval.out @@ -1,2 +1 @@ -[WILDCARD] [Module: null prototype] { isMod4: true } diff --git a/cli/tests/testdata/import_attributes/dynamic_error.out b/cli/tests/testdata/import_attributes/dynamic_error.out index 927eae0b8..d6e0c9115 100644 --- a/cli/tests/testdata/import_attributes/dynamic_error.out +++ b/cli/tests/testdata/import_attributes/dynamic_error.out @@ -1,4 +1,3 @@ -[WILDCARD] error: Uncaught (in promise) TypeError: Expected a "JavaScriptOrWasm" module but loaded a "JSON" module. const data = await import("./data.json"); ^ diff --git a/cli/tests/testdata/import_attributes/static_error.out b/cli/tests/testdata/import_attributes/static_error.out index 171ae0c1a..29b24b965 100644 --- a/cli/tests/testdata/import_attributes/static_error.out +++ b/cli/tests/testdata/import_attributes/static_error.out @@ -1,4 +1,3 @@ -[WILDCARD] error: Expected a JavaScript or TypeScript module, but identified a Json module. Consider importing Json modules with an import attribute with the type of "json". Specifier: [WILDCARD]/data.json at [WILDCARD]static_error.ts:1:18 diff --git a/cli/tests/testdata/import_attributes/static_export.out b/cli/tests/testdata/import_attributes/static_export.out index 42fbc066c..41af79d7c 100644 --- a/cli/tests/testdata/import_attributes/static_export.out +++ b/cli/tests/testdata/import_attributes/static_export.out @@ -1,2 +1 @@ -[WILDCARD] { a: "b", c: { d: 10 } } diff --git a/cli/tests/testdata/import_attributes/static_import.out b/cli/tests/testdata/import_attributes/static_import.out index b3b71cd8f..e57dffa99 100644 --- a/cli/tests/testdata/import_attributes/static_import.out +++ b/cli/tests/testdata/import_attributes/static_import.out @@ -1,3 +1,2 @@ -[WILDCARD] { a: "b", c: { d: 10 } } { a: "b", c: { d: 10 } } diff --git a/cli/tests/testdata/info/031_info_ts_error.out b/cli/tests/testdata/info/031_info_ts_error.out index 49df50012..81edd0032 100644 --- a/cli/tests/testdata/info/031_info_ts_error.out +++ b/cli/tests/testdata/info/031_info_ts_error.out @@ -1,4 +1,3 @@ -[WILDCARD] local: [WILDCARD]031_info_ts_error.ts type: TypeScript dependencies: 0 unique diff --git a/cli/tests/testdata/info/065_import_map_info.out b/cli/tests/testdata/info/065_import_map_info.out index 657510b89..68d98f14a 100644 --- a/cli/tests/testdata/info/065_import_map_info.out +++ b/cli/tests/testdata/info/065_import_map_info.out @@ -1,4 +1,3 @@ -[WILDCARD] local: [WILDCARD]test.ts type: TypeScript dependencies: 7 unique diff --git a/cli/tests/testdata/run/003_relative_import.ts.out b/cli/tests/testdata/run/003_relative_import.ts.out index 699b756ed..e965047ad 100644 --- a/cli/tests/testdata/run/003_relative_import.ts.out +++ b/cli/tests/testdata/run/003_relative_import.ts.out @@ -1,2 +1 @@ -[WILDCARD] Hello diff --git a/cli/tests/testdata/run/020_json_modules.ts.out b/cli/tests/testdata/run/020_json_modules.ts.out index 750363da2..948901724 100644 --- a/cli/tests/testdata/run/020_json_modules.ts.out +++ b/cli/tests/testdata/run/020_json_modules.ts.out @@ -1,4 +1,3 @@ -[WILDCARD] error: Expected a JavaScript or TypeScript module, but identified a Json module. Consider importing Json modules with an import attribute with the type of "json". Specifier: [WILDCARD]/subdir/config.json [WILDCARD]
\ No newline at end of file diff --git a/cli/tests/testdata/run/070_location.ts.out b/cli/tests/testdata/run/070_location.ts.out index 6827a555d..a03cf6477 100644 --- a/cli/tests/testdata/run/070_location.ts.out +++ b/cli/tests/testdata/run/070_location.ts.out @@ -1,4 +1,4 @@ -[WILDCARD][class Location] +[class Location] Object [Location] {} Location { hash: "#bat", @@ -13,4 +13,3 @@ Location { } NotSupportedError: Cannot set "location". NotSupportedError: Cannot set "location.hostname". -[WILDCARD] diff --git a/cli/tests/testdata/run/071_location_unset.ts.out b/cli/tests/testdata/run/071_location_unset.ts.out index cf4a9d605..c9482011f 100644 --- a/cli/tests/testdata/run/071_location_unset.ts.out +++ b/cli/tests/testdata/run/071_location_unset.ts.out @@ -1,5 +1,4 @@ -[WILDCARD][class Location] +[class Location] Object [Location] {} undefined /bar -[WILDCARD] diff --git a/cli/tests/testdata/run/079_location_authentication.ts.out b/cli/tests/testdata/run/079_location_authentication.ts.out index bb2458497..0dd73f999 100644 --- a/cli/tests/testdata/run/079_location_authentication.ts.out +++ b/cli/tests/testdata/run/079_location_authentication.ts.out @@ -1,3 +1 @@ -[WILDCARD] https://baz/qux -[WILDCARD] diff --git a/cli/tests/testdata/run/092_import_map_unmapped_bare_specifier.ts.out b/cli/tests/testdata/run/092_import_map_unmapped_bare_specifier.ts.out index 6e82ad410..7f35b8b4f 100644 --- a/cli/tests/testdata/run/092_import_map_unmapped_bare_specifier.ts.out +++ b/cli/tests/testdata/run/092_import_map_unmapped_bare_specifier.ts.out @@ -1,4 +1,3 @@ -[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 diff --git a/cli/tests/testdata/run/error_026_remote_import_error.ts.out b/cli/tests/testdata/run/error_026_remote_import_error.ts.out index 84f926f24..cc88284af 100644 --- a/cli/tests/testdata/run/error_026_remote_import_error.ts.out +++ b/cli/tests/testdata/run/error_026_remote_import_error.ts.out @@ -1,7 +1,7 @@ -[WILDCARD]error: Uncaught Error: bad +[WILDCARD] +error: Uncaught Error: bad throw Error("bad"); ^ at foo (http://localhost:4545/run/error_001.ts:2:9) at bar (http://localhost:4545/run/error_001.ts:6:3) at http://localhost:4545/run/error_001.ts:9:1 -[WILDCARD] diff --git a/cli/tests/testdata/run/error_cause.ts.out b/cli/tests/testdata/run/error_cause.ts.out index 2aab020d9..6a8555646 100644 --- a/cli/tests/testdata/run/error_cause.ts.out +++ b/cli/tests/testdata/run/error_cause.ts.out @@ -1,4 +1,3 @@ -[WILDCARD] error: Uncaught Error: foo throw new Error("foo", { cause: new Error("bar", { cause: "deno" as any }) }); ^ @@ -12,4 +11,3 @@ Caused by: Error: bar at c (file:///[WILDCARD]/error_cause.ts:11:3) at file:///[WILDCARD]/error_cause.ts:14:1 Caused by: "deno" -[WILDCARD] diff --git a/cli/tests/testdata/run/error_cause_recursive.ts.out b/cli/tests/testdata/run/error_cause_recursive.ts.out index 3ae440cf7..9c381a974 100644 --- a/cli/tests/testdata/run/error_cause_recursive.ts.out +++ b/cli/tests/testdata/run/error_cause_recursive.ts.out @@ -1,4 +1,3 @@ -[WILDCARD] error: Uncaught Error: bar <ref *1> const y = new Error("bar", { cause: x }); ^ diff --git a/cli/tests/testdata/run/error_missing_module_named_import.ts.out b/cli/tests/testdata/run/error_missing_module_named_import.ts.out index 3dccaffb1..700377d65 100644 --- a/cli/tests/testdata/run/error_missing_module_named_import.ts.out +++ b/cli/tests/testdata/run/error_missing_module_named_import.ts.out @@ -1,3 +1,2 @@ -[WILDCARD] error: Module not found "file://[WILDCARD]/does_not_exist.js". at file:///[WILDCARD]/error_missing_module_named_import.ts:[WILDCARD] diff --git a/cli/tests/testdata/run/fix_emittable_skipped.ts.out b/cli/tests/testdata/run/fix_emittable_skipped.ts.out index 8b31d3dbc..865759299 100644 --- a/cli/tests/testdata/run/fix_emittable_skipped.ts.out +++ b/cli/tests/testdata/run/fix_emittable_skipped.ts.out @@ -1,2 +1 @@ -[WILDCARD] [Function (anonymous)] diff --git a/cli/tests/testdata/run/import_blob_url_error_stack.ts.out b/cli/tests/testdata/run/import_blob_url_error_stack.ts.out index 52b76fd5c..201556b8a 100644 --- a/cli/tests/testdata/run/import_blob_url_error_stack.ts.out +++ b/cli/tests/testdata/run/import_blob_url_error_stack.ts.out @@ -1,6 +1,5 @@ -[WILDCARD]error: Uncaught (in promise) Error: Hello 2 +error: Uncaught (in promise) Error: Hello 2 throw new Error(`Hello ${A.C}`); ^ at a (blob:null/[WILDCARD]:8:10) at file:///[WILDCARD]/import_blob_url_error_stack.ts:13:1 -[WILDCARD] diff --git a/cli/tests/testdata/run/import_data_url_error_stack.ts.out b/cli/tests/testdata/run/import_data_url_error_stack.ts.out index ccd72e4ad..e79b52b30 100644 --- a/cli/tests/testdata/run/import_data_url_error_stack.ts.out +++ b/cli/tests/testdata/run/import_data_url_error_stack.ts.out @@ -1,6 +1,5 @@ -[WILDCARD]error: Uncaught Error: Hello 2 +error: Uncaught Error: Hello 2 throw new Error(`Hello ${A.C}`); ^ at a (data:application/typescript;base64,ZW51bSBBIHsKICBBLAog......JHtBLkN9YCk7CiB9CiA=:8:10) at file:///[WILDCARD]/import_data_url_error_stack.ts:3:1 -[WILDCARD] diff --git a/cli/tests/testdata/run/import_extensionless.ts.out b/cli/tests/testdata/run/import_extensionless.ts.out index 699b756ed..e965047ad 100644 --- a/cli/tests/testdata/run/import_extensionless.ts.out +++ b/cli/tests/testdata/run/import_extensionless.ts.out @@ -1,2 +1 @@ -[WILDCARD] Hello diff --git a/cli/tests/testdata/run/import_type.ts.out b/cli/tests/testdata/run/import_type.ts.out index 188c5e25d..e35539e35 100644 --- a/cli/tests/testdata/run/import_type.ts.out +++ b/cli/tests/testdata/run/import_type.ts.out @@ -1,2 +1 @@ -[WILDCARD] B { a: "a" } diff --git a/cli/tests/testdata/run/issue13562.ts.out b/cli/tests/testdata/run/issue13562.ts.out index 699b756ed..e965047ad 100644 --- a/cli/tests/testdata/run/issue13562.ts.out +++ b/cli/tests/testdata/run/issue13562.ts.out @@ -1,2 +1 @@ -[WILDCARD] Hello diff --git a/cli/tests/testdata/run/mts_dmts_mjs.out b/cli/tests/testdata/run/mts_dmts_mjs.out index 5647bdfb9..789819226 100644 --- a/cli/tests/testdata/run/mts_dmts_mjs.out +++ b/cli/tests/testdata/run/mts_dmts_mjs.out @@ -1,2 +1 @@ -[WILDCARD] a diff --git a/cli/tests/testdata/run/private_field_presence.ts.out b/cli/tests/testdata/run/private_field_presence.ts.out index f582fb47a..1d474d525 100644 --- a/cli/tests/testdata/run/private_field_presence.ts.out +++ b/cli/tests/testdata/run/private_field_presence.ts.out @@ -1,3 +1,2 @@ -[WILDCARD] false true diff --git a/cli/tests/testdata/run/unbuffered_stderr.ts.out b/cli/tests/testdata/run/unbuffered_stderr.ts.out index 500019738..c1b0730e0 100644 --- a/cli/tests/testdata/run/unbuffered_stderr.ts.out +++ b/cli/tests/testdata/run/unbuffered_stderr.ts.out @@ -1,2 +1 @@ -[WILDCARD] x
\ No newline at end of file diff --git a/cli/tests/testdata/run/webstorage/serialization.ts.out b/cli/tests/testdata/run/webstorage/serialization.ts.out index fea76aa43..b5581828f 100644 --- a/cli/tests/testdata/run/webstorage/serialization.ts.out +++ b/cli/tests/testdata/run/webstorage/serialization.ts.out @@ -1,3 +1,2 @@ -[WILDCARD] Storage {[WILDCARD] Storage { length: 1, hello: "deno" } diff --git a/cli/tests/testdata/task/deno_json/task_deno_exe_no_env.out b/cli/tests/testdata/task/deno_json/task_deno_exe_no_env.out index cf4a51b68..7ed6ff82d 100644 --- a/cli/tests/testdata/task/deno_json/task_deno_exe_no_env.out +++ b/cli/tests/testdata/task/deno_json/task_deno_exe_no_env.out @@ -1,2 +1 @@ -[WILDCARD] 5 diff --git a/cli/tests/testdata/task/deno_json/task_piped_stdin.out b/cli/tests/testdata/task/deno_json/task_piped_stdin.out index f0a236c86..a0d636f15 100644 --- a/cli/tests/testdata/task/deno_json/task_piped_stdin.out +++ b/cli/tests/testdata/task/deno_json/task_piped_stdin.out @@ -1,3 +1,2 @@ -[WILDCARD] Uint8Array(1) [ 49 ] Uint8Array(1) [ 50 ] diff --git a/cli/tests/testdata/test/steps/failing_steps.dot.out b/cli/tests/testdata/test/steps/failing_steps.dot.out index 3895a967e..f8ba8d8e6 100644 --- a/cli/tests/testdata/test/steps/failing_steps.dot.out +++ b/cli/tests/testdata/test/steps/failing_steps.dot.out @@ -1,4 +1,3 @@ -[WILDCARD] ! . ! diff --git a/cli/tests/testdata/test/steps/ignored_steps.dot.out b/cli/tests/testdata/test/steps/ignored_steps.dot.out index e3d3865d4..442a06c62 100644 --- a/cli/tests/testdata/test/steps/ignored_steps.dot.out +++ b/cli/tests/testdata/test/steps/ignored_steps.dot.out @@ -1,4 +1,3 @@ -[WILDCARD] , . . diff --git a/cli/tests/testdata/workers/custom_inspect/main.out b/cli/tests/testdata/workers/custom_inspect/main.out index b34300c40..40d9b88ad 100644 --- a/cli/tests/testdata/workers/custom_inspect/main.out +++ b/cli/tests/testdata/workers/custom_inspect/main.out @@ -1,2 +1 @@ -[WILDCARD]ReadableStream { locked: false } -[WILDCARD] +ReadableStream { locked: false } diff --git a/cli/tests/testdata/workers/error_worker_permissions_local.ts.out b/cli/tests/testdata/workers/error_worker_permissions_local.ts.out index e6404e8e3..cacc8ae38 100644 --- a/cli/tests/testdata/workers/error_worker_permissions_local.ts.out +++ b/cli/tests/testdata/workers/error_worker_permissions_local.ts.out @@ -1,3 +1,2 @@ -[WILDCARD] error: Uncaught (in worker "") Requires read access to "[WILDCARD]worker_types.ts", run again with the --allow-read flag [WILDCARD] diff --git a/cli/tests/testdata/workers/error_worker_permissions_remote.ts.out b/cli/tests/testdata/workers/error_worker_permissions_remote.ts.out index 74c7c3974..afecff0a8 100644 --- a/cli/tests/testdata/workers/error_worker_permissions_remote.ts.out +++ b/cli/tests/testdata/workers/error_worker_permissions_remote.ts.out @@ -1,3 +1,2 @@ -[WILDCARD] error: Uncaught (in worker "") Requires net access to "localhost:4545", run again with the --allow-net flag [WILDCARD] |