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.
This pull request includes several significant changes to the testing framework and configuration files. The main changes involve migrating from Jest to Vitest for unit testing, updating configurations, and modifying related documentation.
Migration from Jest to Vitest:
jest.config.ts
andjest.setup.ts
: Removed the Jest configuration and setup files as part of the migration to Vitest. [1] [2]vitest.config.ts
: Added a new Vitest configuration file to set up the testing environment and coverage settings.src/tests/unit/ToggleTheme.test.tsx
andsrc/tests/unit/sum.test.ts
: Updated test files to use Vitest'stest
andexpect
functions. [1] [2]Updates to configuration files:
.github/workflows/testing.yml
: Renamed the workflow file fromplaywright.yml
totesting.yml
, split the test job intotests-unit
andtest-e2e
, and updated the node version to 22.package.json
: Updated scripts to use Vitest instead of Jest and made minor version updates to some dependencies. [1] [2] [3] [4]Documentation updates:
README.md
: Updated documentation to reflect the change from Jest to Vitest in the testing sections and directories. [1] [2] [3]