diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-04-16 16:12:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 16:12:26 +0200 |
commit | a87be28a46b67e53354f8ce69386057ddbb0f46c (patch) | |
tree | 5615afd3ac57821edd7c782cfe33d253777a8aa3 /cli/tests/integration | |
parent | 0bb96cde726127291dccb62145e76a50b2efcd2f (diff) |
feat: Better formatting for AggregateError (#14285)
This commit adds "aggregated" field to "deno_core::JsError" that stores
instances of "JsError" recursively to properly handle "AggregateError"
formatting. Appropriate logics was added to "PrettyJsError" and
"console" API to format AggregateErrors.
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
Diffstat (limited to 'cli/tests/integration')
-rw-r--r-- | cli/tests/integration/run_tests.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 969a57a9f..b918e403d 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -2714,3 +2714,15 @@ itest!(set_timeout_error_handled { args: "run --quiet set_timeout_error_handled.ts", output: "set_timeout_error_handled.ts.out", }); + +itest!(aggregate_error { + args: "run --quiet aggregate_error.ts", + output: "aggregate_error.out", + exit_code: 1, +}); + +itest!(complex_error { + args: "run --quiet complex_error.ts", + output: "complex_error.ts.out", + exit_code: 1, +}); |