diff options
| author | Andy Hayden <andyhayden1@gmail.com> | 2019-02-23 08:24:57 -0800 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-23 11:24:57 -0500 |
| commit | 7484cf88b5ad0f15ec25e963a2d5947ff6c71463 (patch) | |
| tree | 5cd0da10513eb9acedc3e3e40c6ddd44afb27890 /testing | |
| parent | ad7721505205be39fdefe22a154a71033002016d (diff) | |
Clean up the test failure output (denoland/deno_std#209)
Original: https://github.com/denoland/deno_std/commit/e609f0c7cb0e7f5eae11c4f1ab78c01470d04347
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/mod.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/mod.ts b/testing/mod.ts index 45a38919a..3b895a2e9 100644 --- a/testing/mod.ts +++ b/testing/mod.ts @@ -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); } } |
