1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
denoland-deno/cli/tests/exit_sanitizer_test.out
Casper Beyer 9cc7e32e37
feat: add exit sanitizer to Deno.test (#9529)
This adds an exit sanitizer to ensure that code being tested or 
dependencies of that code can't accidentally call "Deno.exit"
leading to partial test runs and false results.
2021-02-24 13:55:50 +01:00

28 lines
560 B
Text

Check [WILDCARD]/$deno$test.ts
running 3 tests
test exit(0) ... FAILED ([WILDCARD])
test exit(1) ... FAILED ([WILDCARD])
test exit(2) ... FAILED ([WILDCARD])
failures:
exit(0)
AssertionError: Test case attempted to exit with exit code: 0
[WILDCARD]
exit(1)
AssertionError: Test case attempted to exit with exit code: 1
[WILDCARD]
exit(2)
AssertionError: Test case attempted to exit with exit code: 2
[WILDCARD]
failures:
exit(0)
exit(1)
exit(2)
test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])