Skip to content

Commit d9614bb

Browse files
bjohansebasclaude
andcommitted
test(e2e): adopt webpack-dev-server's 400s test cap for cold CI runners
A multi-step browser test spent its whole 120s budget on a cold Windows runner without any single wait hanging — first build, rebuild, and reload each run several times slower there. dev-server runs all its tests under a flat --test-timeout=400000; the e2e suites now use the same cap, while the per-wait 30s timeouts keep catching real hangs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 60432e2 commit d9614bb

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

test/e2e/client.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import collectConsole, { normalizeConsole } from "../helpers/console-collector";
22
import createHotApp from "../helpers/hot-app";
33
import runBrowser, { runPage } from "../helpers/run-browser";
44

5-
jest.setTimeout(120000);
5+
jest.setTimeout(400000);
66

77
const CLIENT_ENTRY = require.resolve("../../client-src/index.js");
88

test/e2e/indicator.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import createHotApp from "../helpers/hot-app";
22
import runBrowser from "../helpers/run-browser";
33

4-
jest.setTimeout(120000);
4+
jest.setTimeout(400000);
55

66
const INDICATOR_ID = "webpack-dev-middleware-building-indicator";
77
const INDICATOR_ENTRY = require.resolve("../../client-src/indicator.js");

test/e2e/logging.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import collectConsole, { normalizeConsole } from "../helpers/console-collector";
22
import createHotApp from "../helpers/hot-app";
33
import runBrowser from "../helpers/run-browser";
44

5-
jest.setTimeout(120000);
5+
jest.setTimeout(400000);
66

77
/**
88
* @param {string} text text rendered into #app

test/e2e/multi-compiler.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import collectConsole, { normalizeConsole } from "../helpers/console-collector";
22
import createHotApp from "../helpers/hot-app";
33
import runBrowser from "../helpers/run-browser";
44

5-
jest.setTimeout(120000);
5+
jest.setTimeout(400000);
66

77
const OVERLAY_ID = "webpack-dev-middleware-hot-overlay";
88

test/e2e/overlay.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import collectConsole, { normalizeConsole } from "../helpers/console-collector";
22
import createHotApp from "../helpers/hot-app";
33
import runBrowser from "../helpers/run-browser";
44

5-
jest.setTimeout(120000);
5+
jest.setTimeout(400000);
66

77
const OVERLAY_ID = "webpack-dev-middleware-hot-overlay";
88

test/e2e/protocol.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import http from "node:http";
22

33
import createHotApp from "../helpers/hot-app";
44

5-
jest.setTimeout(120000);
5+
jest.setTimeout(400000);
66

77
/**
88
* Open a raw SSE connection and collect frames as they arrive.

0 commit comments

Comments
 (0)