You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b32b0c9
Browse filesBrowse the repository at this point in the historyBrowse files
test: make the generator and dev server tests stable (#4885)
* test: make the generator and dev server tests stable
The `create-webpack-app` tests install real packages, and a registry
hiccup made npm fail, which the tests only reported as a missing line in
stdout. npm now prefers its cache and retries requests more, without the
audit, fund and update-notifier requests, and a failed install fails the
test with npm's error.
The dev server tests took ports from the ephemeral range, where outgoing
connections or another Jest worker could take them before the server
listened. Each worker now takes ports from its own range below the
ephemeral ones.
Claude-Session: https://claude.ai/code/session_013FhutRFjuQemBzekJMYcqL
* test: keep npm's default retries for the generator tests
More retries made a failing install outlast the test timeout, which then
hid npm's error.
Claude-Session: https://claude.ai/code/session_013FhutRFjuQemBzekJMYcqL
* test: keep the port ranges of Jest workers within valid ports
Claude-Session: https://claude.ai/code/session_013FhutRFjuQemBzekJMYcqL
* test: give up to 120 Jest workers their own port range
Claude-Session: https://claude.ai/code/session_013FhutRFjuQemBzekJMYcqL
* fix: don't detect browsers in `webpack info` on Windows
On Windows, `envinfo` starts the browsers themselves to get their versions,
which can hang, e.g. the `info` tests time out on Windows CI runners.
Claude-Session: https://claude.ai/code/session_013FhutRFjuQemBzekJMYcqL
* test: don't let npm prefer its cache in the generator tests
With `prefer-offline`, npm used cached metadata that lacked a version a
freshly fetched package depended on, and the install failed with
ETARGET (`@babel/generator@^8.0.10`) on Windows CI.
Also add a changeset for not detecting browsers in `webpack info` on
Windows.
Claude-Session: https://claude.ai/code/session_013FhutRFjuQemBzekJMYcqL
* chore: move the `webpack info` changeset to #4847
Claude-Session: https://claude.ai/code/session_013FhutRFjuQemBzekJMYcqL
* revert: detect browsers in `webpack info` on Windows again
The `info` tests time out on Windows only at random, so keep detecting
browsers there.
Claude-Session: https://claude.ai/code/session_013FhutRFjuQemBzekJMYcqL
* test: give each Jest worker its own Yarn cache in the generator tests
The init, loader and plugin tests install with Yarn in parallel Jest
workers. Yarn 1 can't fill one cache from two installs at the same time,
and an install failed on macOS CI reading a half-written package.json
from the shared cache.
Claude-Session: https://claude.ai/code/session_013FhutRFjuQemBzekJMYcqL
0 commit comments