Top AI Repos โ open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Codemods for migrating to Jest https://github.com/facebook/jest ๐พ
| Date | Stars |
|---|---|
| 2026-07-24 | 888 |
| 2026-07-25 | 888 |
| 2026-07-28 | 888 |
| 2026-07-30 | 888 |
| 2026-08-06 | 888 |
Today
โ stars today
This week
โ stars this week
This month
โ stars this month
Momentum
10.0
growth rate 0.00%/day
<div align="center"> <h1> jest-codemods ๐พ</h1> Codemods that simplify migrating JavaScript and TypeScript test files from [AVA](https://github.com/avajs/ava), [Chai](https://github.com/chaijs/chai), [Expect.js (by Automattic)](https://github.com/Automattic/expect.js), [[email protected] (by mjackson)](https://github.com/mjackson/expect), [Jasmine](https://github.com/jasmine/jasmine), [Mocha](https://github.com/mochajs/mocha), [proxyquire](https://github.com/thlorenz/proxyquire), [Should.js](https://github.com/tj/should.js/), [Tape](https://github.com/substack/tape), [Sinon](https://github.com/sinonjs/), and [Node-Tap](https://github.com/tapjs/node-tap) to [Jest](https://facebook.github.io/jest/). [![version][version-badge]][package] [](http://npm-stat.com/charts.html?package=jest-codemods&from=2017-07-17) [](https://github.com/skovhus/jest-codemods/blob/master/LICENSE) [](http://makeapullrequest.com) </div> <img src="screenshot.gif" width="300" align="right" style="margin-bottom: 1em; margin-left: 1em"> Codemods are small programs that help you automate changes to your codebase. Think of them as search and replace on steroids. We made jest-codemods so you can try out Jest on your existing codebase. We strive to make the migration as smooth as possible, but some manual intervention and tweaks to your tests are to be expected. ## Usage (CLI) To use the interactive CLI run $ npx jest-codemods If you do not have `npx` installed, you can install the `jest-codemods` command globally by running `npm install -g jest-codemods`. For more options ``` $ npx jest-codemods --help Usage: npx jest-codemods <path> [options] Examples: npx jest-codemods src npx jest-codemods src/**/*.test.js Options: -f, --force Bypass Git safety checks and force codemods to run -d, --dry Dry run (no changes are made to files) ``` To transform all test files in a directory run `jest-codemods .` in your terminal. Notice the console output for errors, manual intervention and tweaks might be required. ## Usage (jscodeshift) To make the process as simple as possible, we recommend the `jest-codemods` CLI that wraps the [jscodeshift](https://github.com/facebook/jscodeshift) executable. But you can also run the transformations directly using `jscodeshift`. ``` $ npm install -g jscodeshift $ npm install jest-codemods $ jscodeshift -t node_modules/jest-codemods/dist/transformers/ava.js test-folder $ jscodeshift -t node_modules/jest-codemods/dist/transformers/chai-assert.js test-folder $ jscodeshift -t node_modules/jest-codemods/dist/transformers/chai-should.js test-folder $ jscodeshift -t node_modules/jest-codemods/dist/transformers/expect-js.js test-folder $ jscodeshift -t node_modules/jest-codemods/dist/transformers/expect.js test-folder $ jscodeshift -t node_modules/jest-codemods/dist/transformers/jasmine-globals.js test-folder $ jscodeshift -t node_modules/jest-codemods/dist/transformers/jasmine-this.js test-folder $ jscodeshift -t node_modules/jest-codemods/dist/transformers/mocha.js test-folder $ jscodeshift -t node_modules/jest-codemods/dist/transformers/should.js test-folder $ jscodeshift -t node_modules/jest-codemods/dist/transformers/tape.js test-folder $ jscodeshift -t node_modules/jest-codemods/dist/transformers/sinon.js test-folder $ jscodeshift -t node_modules/jest-codemods/dist/transformers/jest-globals-import.js test-folder ``` ## Test environment: Jest on Node.js or other If you're using Jest as your test runner and executing tests on Node.js, you'll want to use the default option when prompted. In this case, `jest-codemods` assumes that global values such as `expect` and `jest` are provided and will not `require()` them explicitly.
Excerpt of 6,299 characters
Read on GitHub317
258
30
21
19
Mend Renovate ยท @mend
16
9
Jacob Hilker ยท HubSpot ยท United States
8
6
5
Cameron Hunter ยท @Netflix ยท United States
5
5
Mackie Underdown ยท @fairfield-consulting
3
2
2
Germany
2
2
2
Paul Armstrong
2
2
Would you bet a product on this? Bounded 0โ100 and slow moving.
matched fp:ef853ece3be4fb4c, topic:testing