Skip to content

Commit 3c1d9a6

Browse files
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
1 parent f5a7bb8 commit 3c1d9a6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎test/create-webpack-app/test.utils.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ const nodeVersion = Number.parseInt(process.versions.node.split(".")[0], 10);
99
/** @typedef {Record<string, any>} TestOptions */
1010

1111
// The generators install real packages. Let npm reuse what is in its cache instead of
12-
// asking the registry about every package again, and retry the requests it does make
13-
// more times, so a network error doesn't fail the test.
12+
// asking the registry about every package again, and skip the requests the tests don't
13+
// need, so fewer requests can fail.
1414
const packageManagerEnv = {
1515
npm_config_prefer_offline: "true",
16-
npm_config_fetch_retries: "5",
1716
npm_config_audit: "false",
1817
npm_config_fund: "false",
1918
npm_config_update_notifier: "false",

0 commit comments

Comments
 (0)