summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2023-09-15 16:46:48 +0100
committerGitHub <noreply@github.com>2023-09-15 15:46:48 +0000
commit11f0ccf8052065e37f92d8ba43e9624fcd3b9814 (patch)
tree03ab71902f8c30e2e5a15f95b9a7b2e10e3c3ab1 /cli/tests
parentd226970c0ed1e5a9691b7f22a91792b3e6955d9c (diff)
fix(test): share fail fast tracker between threads (#20515)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/test_tests.rs2
-rw-r--r--cli/tests/testdata/test/fail_fast.out1
-rw-r--r--cli/tests/testdata/test/fail_fast_other.ts3
3 files changed, 5 insertions, 1 deletions
diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs
index b4bf842ff..bcf3e4ef7 100644
--- a/cli/tests/integration/test_tests.rs
+++ b/cli/tests/integration/test_tests.rs
@@ -182,7 +182,7 @@ itest!(quiet {
});
itest!(fail_fast {
- args: "test --fail-fast test/fail_fast.ts",
+ args: "test --fail-fast test/fail_fast.ts test/fail_fast_other.ts",
exit_code: 1,
output: "test/fail_fast.out",
});
diff --git a/cli/tests/testdata/test/fail_fast.out b/cli/tests/testdata/test/fail_fast.out
index c0cf2df01..606d5b345 100644
--- a/cli/tests/testdata/test/fail_fast.out
+++ b/cli/tests/testdata/test/fail_fast.out
@@ -1,4 +1,5 @@
Check [WILDCARD]/test/fail_fast.ts
+Check [WILDCARD]/test/fail_fast_other.ts
running 10 tests from ./test/fail_fast.ts
test 1 ... FAILED ([WILDCARD])
diff --git a/cli/tests/testdata/test/fail_fast_other.ts b/cli/tests/testdata/test/fail_fast_other.ts
new file mode 100644
index 000000000..02aa878cf
--- /dev/null
+++ b/cli/tests/testdata/test/fail_fast_other.ts
@@ -0,0 +1,3 @@
+Deno.test("test 11", () => {
+ throw new Error();
+});