diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-09-14 12:21:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-14 16:21:57 +0000 |
| commit | 54890ee98b9068af41214b86fb693135f0998a0a (patch) | |
| tree | 9a64837d6ccfacafce6139f47c9cddb512de426d /cli/tests/testdata/import_attributes | |
| parent | 851f795001a9164572d02606587ddc5193bdfd2d (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/import_attributes')
4 files changed, 0 insertions, 4 deletions
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 } } |
