diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2022-05-09 10:44:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-09 11:44:50 +0200 |
| commit | 23efc4fcab2ca3b8b47539a7fb1d904efc57eb7c (patch) | |
| tree | 54dd76ef9d2071245c9ad28610f78c72937546eb /cli/tests/testdata/test/no_check.out | |
| parent | ab728e9ccfff2d1ac6362b22b579b00120a39f67 (diff) | |
feat(test): Represent uncaught errors (#14513)
This commit adds better reporting of uncaught errors
in top level scope of testing files. This change affects
both console runner as well as LSP runner.
Diffstat (limited to 'cli/tests/testdata/test/no_check.out')
| -rw-r--r-- | cli/tests/testdata/test/no_check.out | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/cli/tests/testdata/test/no_check.out b/cli/tests/testdata/test/no_check.out index 9daab7ac4..3e1c93535 100644 --- a/cli/tests/testdata/test/no_check.out +++ b/cli/tests/testdata/test/no_check.out @@ -1,8 +1,19 @@ +Uncaught error from ./test/no_check.ts FAILED -test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD]) + ERRORS -error: Uncaught TypeError: Cannot read properties of undefined (reading 'fn') +./test/no_check.ts (uncaught error) +error: TypeError: Cannot read properties of undefined (reading 'fn') Deno.test(); ^ - at [WILDCARD] at [WILDCARD]/test/no_check.ts:1:6 +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. + + FAILURES + +./test/no_check.ts (uncaught error) + +test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD]) + +error: Test failed |
