Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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`