Skip to content

test: migrate from Jest to Vitest - #1000

Merged
anttiviljami merged 3 commits into
mainfrom
anttiviljami-vitest-migration
Sep 19, 2026
Merged

anttiviljami merged 3 commits into
mainfrom
anttiviljami-vitest-migration

Conversation

@anttiviljami

Copy link
Copy Markdown
Member

Summary

  • replace Jest and ts-jest with Vitest
  • preserve the existing test files using a minimal jest = vi compatibility bridge
  • configure Vitest globals and legacy jest.Mock typings without changing test structure

Validation

  • npm test — 4 suites, 316 tests passing
  • npm run build
  • npm run lint

Test speed

Runner Wall time
Jest baseline 6.24 s
Vitest (three runs) 2.65–3.09 s

Vitest reduces measured wall-clock suite time by approximately 51–58% (about 55% at the midpoint).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Claude <noreply@anthropic.com>
anttiviljami and others added 2 commits September 19, 2026 10:34
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: anttiviljami <6105650+anttiviljami@users.noreply.github.com>
@anttiviljami
anttiviljami merged commit cc1babb into main Sep 19, 2026
16 checks passed
@anttiviljami
anttiviljami deleted the anttiviljami-vitest-migration branch September 19, 2026 07:40
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.

2 participants