jest-codemods icon indicating copy to clipboard operation
jest-codemods copied to clipboard

Codemods for migrating to Jest https://github.com/facebook/jest 👾

Results 60 jest-codemods issues
Sort by recently updated
recently updated
newest added

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [update-notifier](https://togithub.com/yeoman/update-notifier) | [`5.1.0` -> `6.0.2`](https://renovatebot.com/diffs/npm/update-notifier/5.1.0/6.0.2) | [![age](https://badges.renovateapi.com/packages/npm/update-notifier/6.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)...

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [inquirer](https://togithub.com/SBoudrias/Inquirer.js) | [`8.2.4` -> `9.1.2`](https://renovatebot.com/diffs/npm/inquirer/8.2.4/9.1.2) | [![age](https://badges.renovateapi.com/packages/npm/inquirer/9.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)...

This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. > [!WARNING] These dependencies are deprecated: | Datasource | Name | Replacement PR? |...

Hi, I'm having trouble converting the following to jest. What is jest's equivalent for the clock() functions? ``` jasmine.clock().uninstall(); jasmine.clock().install(); jasmine.clock().mockDate(mockTime); ``` Any support on this is greatly appreciated!

help wanted

Hello, I installed `jest-codemods` (v0.23.0) globally and ran the following command: ``` npx jest-codemods ./test/unit_tests/event/EventRepositorySpec.js ``` Afterwards I got to see this error: ``` jest-codemods ./test/unit_tests/event/EventRepositorySpec.js ? Which parser do...

fix #106 by preserving the custom expect message sample ```diff - t.equal(1+1, 2, '1+1 should be 2'); + expect(1+1, '1+1 should be 2').toBe(2); ```

# Work in progress Fixes #171

Users would be able to bypass all prompts by passing the options via command line. A complete example looks like this: ``` > npx jest-codemods src/cli/**/*.test.ts --force --parser=tsx --transformer=mocha --mochaAssertion=chai-should...

This is a bit move involved, but it works to find any `.and.*` usage if the spy is defined as a variable and mutated later. I'm going test it a...

I was hoping the codemod could handle some of the dirty work for me, but sadly not, but I've currently got a project where as part of trying to remove...