Conversation
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.
Description and Related Issue(s)
This PR migrates the test framework from Jest to Vitest, aligning with the project's testing strategy documented in CONTRIBUTING.md. The migration includes updating dependencies, test configuration, and all test files to use Vitest's API.
Proposed Changes
Test framework migration: Replaced Jest with Vitest as the unit testing framework
jest,jest-environment-jsdom,jest-fetch-mock,ts-jest,@types/jest,eslint-plugin-jest)vitest,vitest-fetch-mock,eslint-plugin-vitest,jsdom)test:jestandtest:jest:watchwithtest:vitestDependency updates:
1.49.0to1.57.0(including@playwright/testand@playwright/experimental-ct-react)22.11.0to>=22.14.010.9.0to>=10.9.0esbuildfrom0.21.5to0.25.12@chakra-ui/clifrom3.15.0to3.30.0vite-tsconfig-pathsfrom4.3.2to5.1.4Configuration updates:
jest.config.tsand Jest-related configuration filesplaywright-ct.config.tsfor compatibility with new Playwright versionv1.57.0-nobleimageDocumentation: No changes to environment variables
Breaking or Incompatible Changes
yarn test:jesttoyarn test:vitest. Developers need to update their local scripts and CI/CD pipelines accordingly.22.14.0(previously22.11.0). Developers need to upgrade Node.js if running an older version.Additional Information
This migration maintains the same test coverage and functionality while modernizing the testing infrastructure. All existing tests have been successfully migrated to Vitest, and the test suite runs with the new framework.
Checklist for PR author