Jest to vitest - Migrate from jest to vitest

verified codemod icon

Run this codemod to upgrade your codebase from using jest to vitest.

Jest
jscodeshift
Estimated time saving
5+ minutes/file
Change mode
Assistive
Applicability criteria

jest >= 26.0.0

Made by
Codemod.com
Codemod.com

Usage →

Codemod CLI:

intalling vs code extension tooltip icon
codemod jest/vitest
copy CLI command icon

Codemod VS Code extension:

intalling vs code extension tooltip icon
vs code logo
Run in VS Code

Description

Run this codemod to upgrade your codebase from using jest to vitest.

Before



After