mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
fix: revert changes to test output for uncaught errors (#15231)
This commit is contained in:
parent
45c49034a7
commit
89c1ad0303
2 changed files with 2 additions and 18 deletions
16
cli/tests/testdata/test/uncaught_errors.out
vendored
16
cli/tests/testdata/test/uncaught_errors.out
vendored
|
@ -1,9 +1,6 @@
|
|||
running 3 tests from ./test/uncaught_errors_1.ts
|
||||
running 2 tests from ./test/uncaught_errors_1.ts
|
||||
foo 1 ... FAILED ([WILDCARD])
|
||||
foo 2 ... ok ([WILDCARD])
|
||||
foo 3 ...
|
||||
Uncaught error from ./test/uncaught_errors_1.ts FAILED
|
||||
foo 3 ... cancelled (0ms)
|
||||
running 3 tests from ./test/uncaught_errors_2.ts
|
||||
bar 1 ... ok ([WILDCARD])
|
||||
bar 2 ... FAILED ([WILDCARD])
|
||||
|
@ -18,14 +15,6 @@ error: Error: foo 1 message
|
|||
^
|
||||
at [WILDCARD]/test/uncaught_errors_1.ts:2:9
|
||||
|
||||
./test/uncaught_errors_1.ts (uncaught error)
|
||||
error: (in promise) Error: foo 3 message
|
||||
Promise.reject(new Error("foo 3 message"));
|
||||
^
|
||||
at [WILDCARD]/test/uncaught_errors_1.ts:8:18
|
||||
This error was not caught from a test and caused the test runner to fail on the referenced module.
|
||||
It most likely originated from a dangling promise, event/timeout handler or top-level code.
|
||||
|
||||
bar 2 => ./test/uncaught_errors_2.ts:3:6
|
||||
error: Error: bar 2
|
||||
throw new Error("bar 2");
|
||||
|
@ -49,11 +38,10 @@ It most likely originated from a dangling promise, event/timeout handler or top-
|
|||
FAILURES
|
||||
|
||||
foo 1 => ./test/uncaught_errors_1.ts:1:6
|
||||
./test/uncaught_errors_1.ts (uncaught error)
|
||||
bar 2 => ./test/uncaught_errors_2.ts:3:6
|
||||
bar 3 => ./test/uncaught_errors_2.ts:6:6
|
||||
./test/uncaught_errors_3.ts (uncaught error)
|
||||
|
||||
FAILED | 2 passed | 6 failed ([WILDCARD])
|
||||
FAILED | 2 passed | 4 failed ([WILDCARD])
|
||||
|
||||
error: Test failed
|
||||
|
|
4
cli/tests/testdata/test/uncaught_errors_1.ts
vendored
4
cli/tests/testdata/test/uncaught_errors_1.ts
vendored
|
@ -3,7 +3,3 @@ Deno.test("foo 1", () => {
|
|||
});
|
||||
|
||||
Deno.test("foo 2", () => {});
|
||||
|
||||
Deno.test("foo 3", () => {
|
||||
Promise.reject(new Error("foo 3 message"));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue