mirror of
https://github.com/denoland/deno.git
synced 2025-01-14 10:01:51 -05:00
Clean up the test failure output (#209)
This commit is contained in:
parent
817a0fb439
commit
e609f0c7cb
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