Skip to content

Commit f503398

Browse files
committed
test: bump jest testTimeout to 60s
The default 5s timeout was tripping on slower CI runners (notably macOS with older Node) where webpack + multiple minimizers per asset take longer than 5s.
1 parent 8f09d2d commit f503398

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ const RUN_CSS_TESTS = NODE_MAJOR >= 18 && !IS_WINDOWS;
88

99
module.exports = {
1010
testEnvironment: "node",
11+
// The default 5s timeout is too tight for slower CI runners (especially
12+
// older Node on macOS), where webpack + multiple minimizers per asset
13+
// routinely take longer than that.
14+
testTimeout: 60000,
1115
coveragePathIgnorePatterns: ["src/serialize-javascript.js"],
1216
testPathIgnorePatterns: RUN_CSS_TESTS
1317
? []

0 commit comments

Comments
 (0)