Skip to content

Commit 924c429

Browse files
committed
Guard against undefined env var for CI_SPLIT_TESTS
1 parent 788805b commit 924c429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/testRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function run(testsRoot: string, callback: TestCallback): void {
116116
return callback(error);
117117
}
118118
try {
119-
const splitFiles = process.env.CI_SPLIT_TESTS;
119+
const splitFiles = process.env.CI_SPLIT_TESTS || '';
120120
if (splitFiles !== '') {
121121
// environment variable CI_SPLIT_TESTS is a string in the format `[slice]/[num_slices]`.
122122
//

0 commit comments

Comments
 (0)