Skip to content

Commit 947fce0

Browse files
jgzukeljharb
authored andcommitted
switch usages of npm run react
1 parent d2c06d9 commit 947fce0

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

CONTRIBUTING.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,37 @@ git clone https://github.com/airbnb/enzyme.git
1818
cd enzyme
1919

2020
# install dependencies (use react:13 if you want to use React 0.13)
21-
npm install && npm run react:14
21+
npm install && npm run react 14
2222
```
2323

2424

25-
### Switching between React 15, React 0.14 and React 0.13
25+
### Switching between React 16, React 15, React 0.14 and React 0.13
2626

2727
```bash
2828
# switch to React 0.13
29-
npm run react:13
29+
npm run react 13
3030
```
3131

3232
```bash
3333
# switch to React 0.14
34-
npm run react:14
34+
npm run react 14
3535
```
3636

3737
```bash
3838
# switch to React 15
39-
npm run react:15
39+
npm run react 15
4040
```
4141

4242
```bash
4343
# switch to React 16
44-
npm run react:16
44+
npm run react 16
45+
```
46+
47+
Specific versions can also be specified
48+
49+
```bash
50+
# switch to React 16.5
51+
npm run react 16.5
4552
```
4653

4754
### Running Tests

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"test:watch": "mocha --recursive --watch packages/enzyme-test-suite/test",
2828
"pretest:karma": "npm run build",
2929
"test:karma": "karma start",
30-
"test:env": "sh ./example-test.sh",
31-
"test:all": "npm run react:13 && npm run test:only && npm run react:14 && npm run test:only && npm run react:15.4 && npm run test:only && npm run react:15 && npm run test:only && npm run react:16.1 && npm run test:only && npm run react:16.2 && npm run test:only && npm run react:16.3 && npm run test:only && npm run react:16 && npm run test:only",
30+
"test:all": "npm run react 13 && npm run test:only && npm run react 14 && npm run test:only && npm run react 15 && npm run test:only && npm run react 15.4 && npm run test:only && npm run react 15.5 && npm run test:only && npm run react 16 && npm run test:only && npm run react 16.1 && npm run test:only && npm run react 16.2 && npm run test:only && npm run react 16.3 && npm run test:only && npm run react 16.4 && npm run test:only && npm run react 16.5 && npm run test:only",
3231
"react": "sh install-relevant-react.sh",
3332
"env": "babel-node ./env.js",
3433
"docs:clean": "rimraf _book",

0 commit comments

Comments
 (0)