test: update tests to pnpm v9+#2412
Conversation
|
fbed34e to
ca82851
Compare
| "lint": "next lint" | ||
| }, | ||
| "dependencies": { | ||
| "react": "^19.0.0", |
There was a problem hiding this comment.
This makes the versions in the lockfile align better between pnpm 8+9. It seems pnpm v9 changed the ^ to only incremental the last semver specified (which sounds right to me 🤔). Without this some transitive deps change and actually caused this nextjs example to fail.
| "@babel/cli": "^7.23.0", | ||
| "@babel/core": "^7.23.0", | ||
| "@babel/plugin-transform-modules-commonjs": "^7.23.0", | ||
| "@babel/cli": "^7.28.3", |
There was a problem hiding this comment.
Also required to get the versions in the lockfile to align better between pnpm 8+9
38bdc6d to
e07e48f
Compare
| } | ||
| if (e == null) { | ||
| throw new Error('devDependency should NOT be available') | ||
| // TODO: see https://github.com/aspect-build/rules_js/issues/2013 and similar issues. |
There was a problem hiding this comment.
<v9 the lockfile dev flag was used (incorrectly) for this feature, >=v9 that flag no longer exists so the (buggy) behaviour is gone but we have nothing replacing it yet...
d5ff4e7 to
2b815fc
Compare
2b815fc to
4e8d300
Compare
| "pnpm": { | ||
| "onlyBuiltDependencies": [ | ||
| "@aspect-test/c", | ||
| "@figma/nodegit", |
There was a problem hiding this comment.
@dzbarsky I added a few things here since you approved the PR.
Adding fsevents reduced the diff on the snapshot for that file. Adding @kubernetes/client-node (which I think I did before you approved) is what caused the @kubernetes/client-node packageExtensions entry down below due to pnpm9 deciding transitive deps differently and causing a tsc error with a newer version of @types/node.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
37bedf3 to
61dd751
Compare
61dd751 to
099f105
Compare
Same as #2412 for all the e2e tests ### Changes are visible to end-users: no ### Test plan - Covered by existing test cases



Upgrade tests to use pnpm v9+ in preparation for dropping <v9 in the next major release.
Changes are visible to end-users: no
Test plan