Skip to content

Commit

Permalink
use the npx version of jest-codemods in documentation (#8341)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunil Pai authored and SimenB committed Apr 18, 2019
1 parent 14b7efa commit 3e05c06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
8 changes: 1 addition & 7 deletions docs/MigrationGuide.md
Expand Up @@ -13,16 +13,10 @@ If you'd like to try out Jest with an existing codebase, there are a number of w

If you are using [AVA](https://github.com/avajs/ava), [Chai](https://github.com/chaijs/chai), [Expect.js (by Automattic)](https://github.com/Automattic/expect.js), [Jasmine](https://github.com/jasmine/jasmine), [Mocha](https://github.com/mochajs/mocha), [proxyquire](https://github.com/thlorenz/proxyquire), [Should.js](https://github.com/shouldjs/should.js) or [Tape](https://github.com/substack/tape) you can use the third-party [jest-codemods](https://github.com/skovhus/jest-codemods) to do most of the dirty migration work. It runs a code transformation on your codebase using [jscodeshift](https://github.com/facebook/jscodeshift).

Install Jest Codemods with `yarn` by running:

```bash
yarn global add jest-codemods
```

To transform your existing tests, navigate to the project containing the tests and run:

```bash
jest-codemods
npx jest-codemods
```

More information can be found at [https://github.com/skovhus/jest-codemods](https://github.com/skovhus/jest-codemods).
8 changes: 1 addition & 7 deletions website/versioned_docs/version-22.x/MigrationGuide.md
Expand Up @@ -14,16 +14,10 @@ If you'd like to try out Jest with an existing codebase, there are a number of w

If you are using [AVA](https://github.com/avajs/ava), [Chai](https://github.com/chaijs/chai), [Expect.js (by Automattic)](https://github.com/Automattic/expect.js), [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/) or [Tape](https://github.com/substack/tape) you can use the third-party [jest-codemods](https://github.com/skovhus/jest-codemods) to do most of the dirty migration work. It runs a code transformation on your codebase using [jscodeshift](https://github.com/facebook/jscodeshift).

Install Jest Codemods with `yarn` by running:

```bash
yarn global add jest-codemods
```

To transform your existing tests, navigate to the project containing the tests and run:

```bash
jest-codemods
npx jest-codemods
```

More information can be found at [https://github.com/skovhus/jest-codemods](https://github.com/skovhus/jest-codemods).
8 changes: 1 addition & 7 deletions website/versioned_docs/version-24.6/MigrationGuide.md
Expand Up @@ -14,16 +14,10 @@ If you'd like to try out Jest with an existing codebase, there are a number of w

If you are using [AVA](https://github.com/avajs/ava), [Chai](https://github.com/chaijs/chai), [Expect.js (by Automattic)](https://github.com/Automattic/expect.js), [Jasmine](https://github.com/jasmine/jasmine), [Mocha](https://github.com/mochajs/mocha), [proxyquire](https://github.com/thlorenz/proxyquire), [Should.js](https://github.com/shouldjs/should.js) or [Tape](https://github.com/substack/tape) you can use the third-party [jest-codemods](https://github.com/skovhus/jest-codemods) to do most of the dirty migration work. It runs a code transformation on your codebase using [jscodeshift](https://github.com/facebook/jscodeshift).

Install Jest Codemods with `yarn` by running:

```bash
yarn global add jest-codemods
```

To transform your existing tests, navigate to the project containing the tests and run:

```bash
jest-codemods
npx jest-codemods
```

More information can be found at [https://github.com/skovhus/jest-codemods](https://github.com/skovhus/jest-codemods).

0 comments on commit 3e05c06

Please sign in to comment.