Migrate to Vitest 4#1221
Open
graygilmore wants to merge 2 commits into
Open
Conversation
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 2.1.9 to 4.1.0. - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md) - [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.0/packages/vitest) --- updated-dependencies: - dependency-name: vitest dependency-version: 4.1.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
Vitest 4 updates Chai and mock typing enough that the old test setup no longer type-checks. Drop the local ChaiUtils.eql augmentation now that Chai owns that type, align package-local @vitest/expect versions with the root runner, and add explicit Node test types where the workspace uses Node globals. Move the fork worker options to the Vitest 4 top-level config shape and make the language server test mocks explicit so TypeScript does not infer private @vitest/spy types.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps Vitest from
2.1.9to4.1.0and applies the migration cleanup needed for CI:@vitest/expectversions with the root Vitest runnerChaiUtils.eqltype augmentation now that Chai owns that typeContext
This supersedes #1219. The Dependabot bump alone fails during the build because the older test setup no longer type-checks against the Vitest 4/Chai types.
This keeps the dependency upgrade but makes it an explicit migration PR instead of carrying source changes on the Dependabot branch.