diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-04-27 13:40:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-27 14:40:03 +0200 |
| commit | 03132e19da6c8e34e8100c6a57cd911b43900950 (patch) | |
| tree | 014db77ed12f9ae882abba3c23c5f541461f03b4 /cli/tests/testdata/test/report_error.ts | |
| parent | d043a6d72cbf683c70f7eb4b9b3c09003afd2683 (diff) | |
fix(test): handle dispatched exceptions from test functions (#18853)
Fixes #18852.
Diffstat (limited to 'cli/tests/testdata/test/report_error.ts')
| -rw-r--r-- | cli/tests/testdata/test/report_error.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/testdata/test/report_error.ts b/cli/tests/testdata/test/report_error.ts new file mode 100644 index 000000000..56b6db26c --- /dev/null +++ b/cli/tests/testdata/test/report_error.ts @@ -0,0 +1,6 @@ +Deno.test("foo", () => { + reportError(new Error("foo")); + console.log(1); +}); + +Deno.test("bar", () => {}); |
