next.js
8efa8351 - [16.5] test: mock the canary lookup in the agent upgrade reuse test (#102562)

Commit
1 day ago
[16.5] test: mock the canary lookup in the agent upgrade reuse test (#102562) Backports [test: mock the canary lookup in the agent upgrade reuse test (#102553)](https://github.com/vercel/next.js/pull/102553) to `releases/stable/16-5`. This fixes the `test unit` failures on `releases/stable/16-5` since `v16.5.0-rc.0`. Two cases in `test/unit/agentic-upgrade-prompts.test.ts` were failing: "reuses the current canary after checking npm with legacy guard undefined / 1". ### Verification - `next` rebuilt from this branch, so `16.5.0-rc.0` is inlined. `pnpm exec jest test/unit/agentic-upgrade-prompts.test.ts`: 94/94 passed. The release branch's previous version of the file fails the same 2 cases on that build. <!-- NEXT_JS_LLM --> <!-- fleet 3b68d51c-6447-41b3-8a1c-1613d8fb2791 --> Co-authored-by: vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com>
Author
Parents
Loading