Skip to content

Commit 539a46d

Browse files
Exit code 1 on fail tests for run scripts
1 parent 8e6fa59 commit 539a46d

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

packages/test-runner/src/scripts/runTalonJsTests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
import { TestType, runAllTests } from "../runAllTests";
66

7-
void runAllTests(TestType.talonJs);
7+
runAllTests(TestType.talonJs).catch(() => {
8+
process.exit(1);
9+
});

packages/test-runner/src/scripts/runTalonTests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
import { TestType, runAllTests } from "../runAllTests";
66

7-
void runAllTests(TestType.talon);
7+
runAllTests(TestType.talon).catch(() => {
8+
process.exit(1);
9+
});

packages/test-runner/src/scripts/runUnitTests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
import { TestType, runAllTests } from "../runAllTests";
66

7-
void runAllTests(TestType.unit);
7+
runAllTests(TestType.unit).catch(() => {
8+
process.exit(1);
9+
});

0 commit comments

Comments
 (0)