Skip to content

chore(cli): update Vitest to v4#250

Merged
fengmk2 merged 1 commit intomainfrom
10-23-deps_cli_use_vitest_v4
Oct 25, 2025
Merged

chore(cli): update Vitest to v4#250
fengmk2 merged 1 commit intomainfrom
10-23-deps_cli_use_vitest_v4

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Oct 23, 2025

TL;DR

Update Vitest from v3.2.4 to v4.0.3 and update related CLI options and configuration.

What changed?

  • Updated Vitest from v3.2.4 to v4.0.3
  • Updated @vitest/browser from v3.2.4 to v4.0.1
  • Updated CLI options in the snap tests:
    • Added --execArgv and --vmMemoryLimit options
    • Removed --workspace, --poolOptions, and --minWorkers options
    • Updated reporter list to include "tree" and remove "basic"
    • Updated --standalone description to clarify behavior with CLI file filters
  • Updated browser mode configuration in snap tests to use the new provider API format
  • Fixed the Vitest binary resolution in resolve-test.ts to use package.json path
  • Added package.json configuration for the browser mode snap test

How to test?

  1. Run the CLI snap tests to verify the updated command options work correctly
  2. Test the browser mode functionality with the new provider API format
  3. Verify that the Vitest binary is correctly resolved in different environments

Why make this change?

This update brings in the latest version of Vitest with improved features and API changes. The changes to the CLI options reflect the evolution of Vitest's configuration options, with some deprecated options being removed and new ones being added. The browser provider API has been updated to a more flexible format, and the binary resolution has been improved to be more reliable across different environments.

Copy link
Copy Markdown
Member Author

fengmk2 commented Oct 23, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@fengmk2 fengmk2 self-assigned this Oct 23, 2025
@fengmk2 fengmk2 marked this pull request as ready for review October 23, 2025 13:20
Copilot AI review requested due to automatic review settings October 23, 2025 13:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates Vitest and related packages from version 3.2.4 to version 4.0.1, representing a major version upgrade of the testing framework.

Key changes:

  • Updated vitest package from ^3.2.4 to ^4.0.1
  • Updated @vitest/browser package from ^3.2.4 to ^4.0.1
  • Added @vitest/* to the minimumReleaseAgeExclude list to allow immediate adoption of Vitest updates
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@fengmk2 fengmk2 force-pushed the 10-23-deps_cli_use_vitest_v4 branch from 4448d1f to 923cfe0 Compare October 23, 2025 13:43
Copilot AI review requested due to automatic review settings October 23, 2025 13:46
@fengmk2 fengmk2 force-pushed the 10-23-deps_cli_use_vitest_v4 branch from 923cfe0 to 6ae9d21 Compare October 23, 2025 13:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@fengmk2 fengmk2 force-pushed the 10-23-deps_cli_use_vitest_v4 branch from 6ae9d21 to 4b41576 Compare October 25, 2025 09:10
@fengmk2 fengmk2 changed the title deps(cli): use vitest v4 chore(cli): update Vitest to v4.0.1 Oct 25, 2025
Copilot AI review requested due to automatic review settings October 25, 2025 09:16
@fengmk2 fengmk2 force-pushed the 10-23-deps_cli_use_vitest_v4 branch from 4b41576 to f1e0bfa Compare October 25, 2025 09:16
@fengmk2 fengmk2 changed the title chore(cli): update Vitest to v4.0.1 chore(cli): update Vitest to v4 Oct 25, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fengmk2 fengmk2 force-pushed the 10-23-deps_cli_use_vitest_v4 branch from f1e0bfa to 49d3d2a Compare October 25, 2025 09:20
Copy link
Copy Markdown
Member Author

fengmk2 commented Oct 25, 2025

restack from https://app.graphite.dev/github/pr/voidzero-dev/vite-plus/258 , tests pass now. @branchseer

Added via Giphy

@fengmk2 fengmk2 merged commit 40d534a into main Oct 25, 2025
10 checks passed
Copy link
Copy Markdown
Member Author

fengmk2 commented Oct 25, 2025

Merge activity

@fengmk2 fengmk2 deleted the 10-23-deps_cli_use_vitest_v4 branch October 25, 2025 09:32
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.

3 participants