Skip to content

Commit c630d1b

Browse files
committed
Fix more CI issues
1 parent dc5d374 commit c630d1b

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/testing/jest/jest-28/jest-runner.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,17 @@ export function createTestRunner(): JestTestRunnerConstructor {
8585
setScreenshotEmulateData(emulateConfig, env);
8686

8787
// run the test for each emulate config
88-
const forwarded = isThreeArg ? [tests, watcher, options] : [tests, watcher, onStart, onResult, onFailure, options];
88+
const forwarded = isThreeArg
89+
? [tests, watcher, options]
90+
: [tests, watcher, onStart, onResult, onFailure, options];
8991
await (super.runTests as any).apply(this, forwarded);
9092
}
9193
} else {
9294
// not doing e2e screenshot tests
9395
// so just run each test once
94-
const forwarded = isThreeArg ? [tests, watcher, options] : [tests, watcher, onStart, onResult, onFailure, options];
96+
const forwarded = isThreeArg
97+
? [tests, watcher, options]
98+
: [tests, watcher, onStart, onResult, onFailure, options];
9599
await (super.runTests as any).apply(this, forwarded);
96100
}
97101
}

src/testing/jest/jest-29/jest-runner.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,17 @@ export function createTestRunner(): JestTestRunnerConstructor {
8585
setScreenshotEmulateData(emulateConfig, env);
8686

8787
// run the test for each emulate config
88-
const forwarded = isThreeArg ? [tests, watcher, options] : [tests, watcher, onStart, onResult, onFailure, options];
88+
const forwarded = isThreeArg
89+
? [tests, watcher, options]
90+
: [tests, watcher, onStart, onResult, onFailure, options];
8991
await (super.runTests as any).apply(this, forwarded);
9092
}
9193
} else {
9294
// not doing e2e screenshot tests
9395
// so just run each test once
94-
const forwarded = isThreeArg ? [tests, watcher, options] : [tests, watcher, onStart, onResult, onFailure, options];
96+
const forwarded = isThreeArg
97+
? [tests, watcher, options]
98+
: [tests, watcher, onStart, onResult, onFailure, options];
9599
await (super.runTests as any).apply(this, forwarded);
96100
}
97101
}

0 commit comments

Comments
 (0)