summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-09-14 12:21:57 -0400
committerGitHub <noreply@github.com>2023-09-14 16:21:57 +0000
commit54890ee98b9068af41214b86fb693135f0998a0a (patch)
tree9a64837d6ccfacafce6139f47c9cddb512de426d /cli/tests/testdata/run
parent851f795001a9164572d02606587ddc5193bdfd2d (diff)
chore(tests): ability to pattern match unordered lines (#20488)
This adds the ability to pattern match unordered lines. For example, the downloading messages may appear in any order ``` [UNORDERED_START] Download https://localhost:4546/a.ts Download https://localhost:4546/b.ts [UNORDERED_END] Hello! ``` Additionally, I've made the pattern matching slightly more strict and the output better.
Diffstat (limited to 'cli/tests/testdata/run')
-rw-r--r--cli/tests/testdata/run/003_relative_import.ts.out1
-rw-r--r--cli/tests/testdata/run/020_json_modules.ts.out1
-rw-r--r--cli/tests/testdata/run/070_location.ts.out3
-rw-r--r--cli/tests/testdata/run/071_location_unset.ts.out3
-rw-r--r--cli/tests/testdata/run/079_location_authentication.ts.out2
-rw-r--r--cli/tests/testdata/run/092_import_map_unmapped_bare_specifier.ts.out1
-rw-r--r--cli/tests/testdata/run/error_026_remote_import_error.ts.out4
-rw-r--r--cli/tests/testdata/run/error_cause.ts.out2
-rw-r--r--cli/tests/testdata/run/error_cause_recursive.ts.out1
-rw-r--r--cli/tests/testdata/run/error_missing_module_named_import.ts.out1
-rw-r--r--cli/tests/testdata/run/fix_emittable_skipped.ts.out1
-rw-r--r--cli/tests/testdata/run/import_blob_url_error_stack.ts.out3
-rw-r--r--cli/tests/testdata/run/import_data_url_error_stack.ts.out3
-rw-r--r--cli/tests/testdata/run/import_extensionless.ts.out1
-rw-r--r--cli/tests/testdata/run/import_type.ts.out1
-rw-r--r--cli/tests/testdata/run/issue13562.ts.out1
-rw-r--r--cli/tests/testdata/run/mts_dmts_mjs.out1
-rw-r--r--cli/tests/testdata/run/private_field_presence.ts.out1
-rw-r--r--cli/tests/testdata/run/unbuffered_stderr.ts.out1
-rw-r--r--cli/tests/testdata/run/webstorage/serialization.ts.out1
20 files changed, 6 insertions, 27 deletions
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" }