A jscodeshift codemod for converting jest tests to vitest by adding vitest imports.
A collection of codemods for jest-to-vitest.
To run a specific codemod from this project, you would run the following:
npx jest-to-vitest <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
# or
yarn global add jest-to-vitest
jest-to-vitest <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
node ./bin/cli.js <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
yarn
yarn test
yarn update-docs