mirror of
https://github.com/denoland/deno.git
synced 2024-11-27 16:10:57 -05:00
Clean up the test failure output (denoland/deno_std#209)
Original: e609f0c7cb
This commit is contained in:
parent
ad77215052
commit
7484cf88b5
1 changed files with 2 additions and 1 deletions
|
@ -286,7 +286,8 @@ export async function runTests() {
|
|||
// Use setTimeout to avoid the error being ignored due to unhandled
|
||||
// promise rejections being swallowed.
|
||||
setTimeout(() => {
|
||||
throw new Error(`There were ${failed} test failures.`);
|
||||
console.error(`There were ${failed} test failures.`);
|
||||
Deno.exit(1);
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue