C

mocha/vitest/migrate-config

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

Run this codemod to upgrade configuration files that need to be changed after migrating from mocha to vitest.

Example

package.json

Before

json

After

json

tsconfig.json

Before

json

After

json

.mocharc

Before

json

After

Removed

Ready to contribute?

Build your own codemod and share it with the community.