next.js
0541251f - test: remove per-test Corepack overrides now that deploy mode enables it (#99945)

Commit
38 days ago
test: remove per-test Corepack overrides now that deploy mode enables it (#99945) ## Summary #95360 sets `ENABLE_EXPERIMENTAL_COREPACK=1` for every deployment in `test/lib/next-modes/next-deploy.ts`, so Vercel now installs deploy tests with the generated `package.json#packageManager` (pnpm). The per-test workarounds added to get individual suites deploying are now redundant: - Remove `env: { ENABLE_EXPERIMENTAL_COREPACK: '1' }` from 13 `nextTestSetup` call sites across 12 test files: `geist-font`, `gssp-redirect`, `gssp-redirect-base-path`, `rewrite-with-browser-history`, `router-hash-navigation`, `scroll-back-restoration`, `relay-graphql-swc-multi-project` (x2), `nx-handling`, `import-meta-glob-monorepo`, `non-root-project-monorepo`, `server-source-maps`, `fake-frame-source-maps`, and `transpile-packages-typescript-foreign` (x2). - Remove `test/e2e/transpile-packages-typescript-foreign/vercel.json`. Its only purpose was `installCommand: "pnpm install"` to stop Vercel from installing with npm. This is a separate commit in case it should be dropped. ## Verification - `git grep ENABLE_EXPERIMENTAL_COREPACK` now only matches `test/lib/next-modes/next-deploy.ts`. - Not run: `pnpm test-deploy-turbo` on the affected suites (pending a deploy test run on this branch). <!-- NEXT_JS_LLM --> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Author
Parents
Loading