Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use Vitest #163

Merged
merged 8 commits into from
Feb 1, 2025
Merged

feat: use Vitest #163

merged 8 commits into from
Feb 1, 2025

Conversation

LuanRoger
Copy link
Owner

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 and jest.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 and src/tests/unit/sum.test.ts: Updated test files to use Vitest's test and expect functions. [1] [2]

Updates to configuration files:

  • .github/workflows/testing.yml: Renamed the workflow file from playwright.yml to testing.yml, split the test job into tests-unit and test-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]

@LuanRoger LuanRoger merged commit 0e47f4d into main Feb 1, 2025
2 checks passed
@LuanRoger LuanRoger deleted the feat/vitest branch February 1, 2025 19:01
@LuanRoger LuanRoger linked an issue Feb 1, 2025 that may be closed by this pull request
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.

Replace jest with vitest
1 participant