mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
Clean up the test failure output (#209)
This commit is contained in:
parent
817a0fb439
commit
e609f0c7cb
@ -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 New Issue
Block a user