Skip to content

Commit

Permalink
docs: update instructions to try dev build of Jest in another project (
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Nov 16, 2020
1 parent e581661 commit cec8f50
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions CONTRIBUTING.md
Expand Up @@ -158,13 +158,6 @@ In order to accept your pull request, we need you to submit a CLA. You only need

## How to try a development build of Jest in another project

To link `jest` on the command line to `jest-cli/bin/jest.js` in a development build:

```sh-session
$ cd /path/to/your/Jest_clone/packages/jest-cli
$ yarn link
```

To build Jest:

```sh-session
Expand All @@ -184,20 +177,11 @@ To run tests in another project with the development build of Jest:
```sh-session
$ cd /path/to/another/project

# link development build to the other project
$ yarn link jest-cli

$ jest [options] # run jest-cli/bin/jest.js in the development build
$ node /path/to/your/JestClone/packages/jest/bin/jest [options] # run jest-cli/bin/jest.js in the development build
```

- To decide whether to specify any options, see `test` under `scripts` in the `package.json` file of the other project.

To unlink `jest` on the command line from `jest-cli/bin/jest.js` in a development build:

```sh
yarn unlink jest-cli
```

## Bugs

### Where to Find Known Issues
Expand Down

0 comments on commit cec8f50

Please sign in to comment.