Skip to content

test: migrate from jest to vitest#2023

Merged
no23reason merged 1 commit into
masterfrom
vitest
Jun 28, 2026
Merged

test: migrate from jest to vitest#2023
no23reason merged 1 commit into
masterfrom
vitest

Conversation

@no23reason

Copy link
Copy Markdown
Owner

Replace jest with vitest 4 as the test runner.

  • swap deps: remove jest, ts-jest, @types/jest, jest-environment-jsdom; add vitest, @vitest/coverage-v8, jsdom
  • replace jest.config.js with vitest.config.ts (jsdom env, globals, v8 coverage)
  • add vitest.setup.ts: load jest-dom matchers; alias global jest to vi so @testing-library detects vitest fake timers
  • migrate test: explicit vitest imports, jest.* -> vi.*
  • update scripts: test:js -> vitest run --coverage, test:tdd -> vitest

Replace jest with vitest 4 as the test runner.

- swap deps: remove jest, ts-jest, @types/jest, jest-environment-jsdom;
  add vitest, @vitest/coverage-v8, jsdom
- replace jest.config.js with vitest.config.ts (jsdom env, globals, v8 coverage)
- add vitest.setup.ts: load jest-dom matchers; alias global `jest` to `vi`
  so @testing-library detects vitest fake timers
- migrate test: explicit vitest imports, jest.* -> vi.*
- update scripts: test:js -> vitest run --coverage, test:tdd -> vitest

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@no23reason no23reason merged commit e266581 into master Jun 28, 2026
6 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 4.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant