diff --git a/docs/MigrationGuide.md b/docs/MigrationGuide.md index c885e0c08e19..d475453466c2 100644 --- a/docs/MigrationGuide.md +++ b/docs/MigrationGuide.md @@ -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). diff --git a/website/versioned_docs/version-22.x/MigrationGuide.md b/website/versioned_docs/version-22.x/MigrationGuide.md index 03006de8b04b..e1d7545b7ee5 100644 --- a/website/versioned_docs/version-22.x/MigrationGuide.md +++ b/website/versioned_docs/version-22.x/MigrationGuide.md @@ -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). diff --git a/website/versioned_docs/version-24.6/MigrationGuide.md b/website/versioned_docs/version-24.6/MigrationGuide.md index b2e2cd03e352..1c05db3b6a5a 100644 --- a/website/versioned_docs/version-24.6/MigrationGuide.md +++ b/website/versioned_docs/version-24.6/MigrationGuide.md @@ -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).