Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion test/lib/create-next-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,17 @@ async function installDependencies(cwd, tmpDir) {
await execa('pnpm', args, {
cwd,
stdio: ['ignore', 'inherit', 'inherit'],
env: process.env,
env: {
...process.env,
// pnpm reads this despite claims it ignores `npm_config_*` env variables.
// This isn't set in CI but some local environments set this from the
// pnpm-workspace.yaml for unknown reasons.
// minimumReleaseAgeExclude is not propagated with environment variables
// so some installs would just fail.
// TODO: ideally every test fixture would run with minimumReleaseAgeExclude but
// that requires some work in monorepo test suites.
Comment on lines +37 to +38
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attempted in #92565

npm_config_minimum_release_age: undefined,
},
})
}

Expand Down
Loading