Skip to content

Commit b7ba111

Browse files
test: ignore engines of packages installed by Yarn in generator tests
[email protected] depends on rechoir 1, which requires Node.js 22.15, and Yarn 1 fails the install on Node.js 20. Claude-Session: https://claude.ai/code/session_013FhutRFjuQemBzekJMYcqL
1 parent 1898626 commit b7ba111

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ const packageManagerEnv = {
2222
os.tmpdir(),
2323
`webpack-cli-yarn-cache-${process.env.JEST_WORKER_ID || 1}`,
2424
),
25+
// Yarn 1 fails on packages which require a newer Node.js version than the one running tests,
26+
// the tests check the generated projects and not the engines of the installed packages
27+
YARN_IGNORE_ENGINES: "true",
2528
};
2629

2730
/**

0 commit comments

Comments
 (0)