{{ message }}
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Co-authored-by: jaredpalmer <4060187+jaredpalmer@users.noreply.github.com>
Co-authored-by: jaredpalmer <4060187+jaredpalmer@users.noreply.github.com>
Co-authored-by: jaredpalmer <4060187+jaredpalmer@users.noreply.github.com>
Co-authored-by: jaredpalmer <4060187+jaredpalmer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update test suite to use vitest framework
Migrate test suite from Jest to Vitest
Nov 7, 2025
jaredpalmer
approved these changes
Nov 7, 2025
There was a problem hiding this comment.
Pull Request Overview
This PR migrates the Formik project from Jest to Vitest as the testing framework. The migration includes updating test scripts, configuration files, dependencies, and converting all Jest-specific API calls to their Vitest equivalents.
Key changes:
- Replaced Jest with Vitest as the test runner
- Migrated all
jest.fn(),jest.spyOn(), andjest.Mockreferences to Vitest equivalents - Added Vitest configuration files for both formik and formik-native packages
- Updated test scripts and removed Jest-specific configuration from package.json
Reviewed Changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.

Migrated the test suite from Jest (via tsdx) to Vitest, aligning with React 19 testing best practices and modern tooling.
Changes
packages/formik
vitest,@vitest/ui,@vitest/coverage-v8,jsdom,@testing-library/jest-domvitest.config.tswith jsdom environment, globals enabled, and coverage configurationtest/setupTests.tsto import fromvitestand filter React act() warningsjest.fn()→vi.fn()jest.spyOn()→vi.spyOn()jest.Mock→vi.Mockfdescribe→describetest,test:watch,test:ui,test:coveragepackages/formik-native
Root
@types/jestdependencyBefore/After
Results
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.