mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
8de4a05f2a
After splitting "failFast" and "exitOnFail" arguments, there was a situation where failing tests did not exit with code 1. * fixed argument value passed to Deno.runTests() in deno test * fixed argument value passed to Deno.runTests() in std/testing/runner.ts * added integration tests for deno test to ensure failFast and exitOnFail work as expected * don't write test file to file system, but keep it in memory
19 lines
394 B
TypeScript
19 lines
394 B
TypeScript
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
|
|
import { assert } from "../../std/testing/asserts.ts";
|
|
|
|
Deno.test(function fail1() {
|
|
assert(false, "fail1 assertion");
|
|
});
|
|
|
|
Deno.test(function fail2() {
|
|
assert(false, "fail2 assertion");
|
|
});
|
|
|
|
Deno.test(function success1() {
|
|
assert(true);
|
|
});
|
|
|
|
Deno.test(function fail3() {
|
|
assert(false, "fail3 assertion");
|
|
});
|