mirror of
https://github.com/denoland/deno.git
synced 2024-10-30 09:08:00 -04:00
f52031ecdf
This commit changes "deno test" to filter out stack frames if it is beneficial to the user. This is the case when there are stack frames coming from "internal" code below frames coming from user code. Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
39 lines
930 B
Text
39 lines
930 B
Text
Check [WILDCARD]/test/exit_sanitizer.ts
|
|
running 3 tests from ./test/exit_sanitizer.ts
|
|
exit(0) ... FAILED ([WILDCARD])
|
|
exit(1) ... FAILED ([WILDCARD])
|
|
exit(2) ... FAILED ([WILDCARD])
|
|
|
|
failures:
|
|
|
|
./test/exit_sanitizer.ts > exit(0)
|
|
AssertionError: Test case attempted to exit with exit code: 0
|
|
Deno.exit(0);
|
|
^
|
|
at [WILDCARD]
|
|
at [WILDCARD]/test/exit_sanitizer.ts:2:8
|
|
|
|
./test/exit_sanitizer.ts > exit(1)
|
|
AssertionError: Test case attempted to exit with exit code: 1
|
|
Deno.exit(1);
|
|
^
|
|
at [WILDCARD]
|
|
at [WILDCARD]/test/exit_sanitizer.ts:6:8
|
|
|
|
./test/exit_sanitizer.ts > exit(2)
|
|
AssertionError: Test case attempted to exit with exit code: 2
|
|
Deno.exit(2);
|
|
^
|
|
at [WILDCARD]
|
|
at [WILDCARD]/test/exit_sanitizer.ts:10:8
|
|
|
|
failures:
|
|
|
|
./test/exit_sanitizer.ts
|
|
exit(0)
|
|
exit(1)
|
|
exit(2)
|
|
|
|
test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
|
|
|
|
error: Test failed
|