Skip to content

fix(migrate): supply the Vite peer for direct pnpm Vitest installs - #3620

Open
gxcsoccer wants to merge 5 commits into
voidzero-dev:mainfrom
gxcsoccer:fix/pnpm-vitest-vite-peer
Open

gxcsoccer wants to merge 5 commits into
voidzero-dev:mainfrom
gxcsoccer:fix/pnpm-vitest-vite-peer

Conversation

@gxcsoccer

@gxcsoccer gxcsoccer commented Nov 30, 2026 •

Copy link
Copy Markdown

pnpm can auto-install upstream Vite for a project's direct Vitest dependency even when the workspace overrides Vite to Vite+ core. The different Vite peers give the project and Vite+ separate Vitest instances, so tests registered by @cloudflare/vitest-plugin fail during collection.

Have vp migrate supply the core alias in pnpm packages that directly install the Vite+-managed Vitest and have no Vite declaration. This also repairs previously migrated projects. In the reported reproduction, both vp test run and vitest run now pass with one installed Vitest instance.

Closes #3619

Change-Id: I2f26472eca3d61e8ce50e9b4e3bdc2c935faadf9
@jong-kyung

Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T05:08:35.004261Z e5f3152 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Change-Id: I93a5811901d7b3bf1f6d6b27ebed8fc279246789
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: e3972ea0d8

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Change-Id: I28beac8e1561486e6cab5c9761fc8f242309cfcc
@jong-kyung

Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: e5f315298c

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

gxc.510 added 2 commits November 30, 2026 13:12
Change-Id: I80fef2bab1eeab5c5e2458eda3a5bfa216723303
Change-Id: I48b3b0fa29edab813b09c529ab9698e1cb8645fa
@jong-kyung
jong-kyung requested a review from fengmk2 November 30, 2026 05:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vp test fails with @cloudflare/vitest-plugin while vitest run passes (1.8.0, again after #1076)

2 participants