mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 18:19:08 -05:00
23efc4fcab
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.
19 lines
574 B
Text
19 lines
574 B
Text
Uncaught error from ./test/no_check.ts FAILED
|
|
|
|
ERRORS
|
|
|
|
./test/no_check.ts (uncaught error)
|
|
error: TypeError: Cannot read properties of undefined (reading 'fn')
|
|
Deno.test();
|
|
^
|
|
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
|