Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scalvert/jest-to-vitest
A jscodeshift codemod for converting jest tests to vitest by adding vitest imports.
https://github.com/scalvert/jest-to-vitest
Last synced: 2 months ago
JSON representation
A jscodeshift codemod for converting jest tests to vitest by adding vitest imports.
- Host: GitHub
- URL: https://github.com/scalvert/jest-to-vitest
- Owner: scalvert
- Created: 2022-01-13T18:50:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-13T21:09:50.000Z (almost 3 years ago)
- Last Synced: 2024-10-15T03:33:46.097Z (2 months ago)
- Language: JavaScript
- Size: 345 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# jest-to-vitest
A collection of codemods for jest-to-vitest.
## Usage
To run a specific codemod from this project, you would run the following:
```
npx jest-to-vitest path/of/files/ or/some**/*glob.js# or
yarn global add jest-to-vitest
jest-to-vitest path/of/files/ or/some**/*glob.js
```## Local Usage
```
node ./bin/cli.js path/of/files/ or/some**/*glob.js
```## Transforms
* [add-vitest-imports](transforms/add-vitest-imports/README.md)
## Contributing
### Installation
* clone the repo
* change into the repo directory
* `yarn`### Running tests
* `yarn test`
### Update Documentation
* `yarn update-docs`