1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-14 16:33:45 -05:00
denoland-deno/cli/tests/test/fail_fast_with_val.ts
Yasser A.Idrissi 32855f2c85
feat: Add support for "deno test --fail-fast=N" (#11316)
This commit adds support for specifying threshold in the "--fail-fast"
flag for "deno test" subcommand. Previously using "--fail-fast" stopped
running the test suite after first failure and with this change users
may specify number of failed tests that will cause the suite to be interrupted.

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-07-12 12:55:42 +02:00

30 lines
530 B
TypeScript

Deno.test("test 1", () => {
throw new Error();
});
Deno.test("test 2", () => {
throw new Error();
});
Deno.test("test 3", () => {
throw new Error();
});
Deno.test("test 4", () => {
throw new Error();
});
Deno.test("test 5", () => {
throw new Error();
});
Deno.test("test 6", () => {
throw new Error();
});
Deno.test("test 7", () => {
throw new Error();
});
Deno.test("test 8", () => {
throw new Error();
});
Deno.test("test 9", () => {
throw new Error();
});
Deno.test("test 0", () => {
throw new Error();
});