Skip to content

Commit

Permalink
Make react-test-renderer a dependency instead of a peer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
bdwain authored and ljharb committed Oct 12, 2017
1 parent aeff578 commit df5415d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 24 deletions.
6 changes: 0 additions & 6 deletions docs/installation/react-014.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ installed, you should do so:
npm i --save react@0.14 react-dom@0.14
```

Further, enzyme with React 0.14 requires the test utilities addon be installed:

```bash
npm i --save-dev react-addons-test-utils@0.14
```

Next, to get started with enzyme, you can simply install it with npm:

```bash
Expand Down
6 changes: 0 additions & 6 deletions docs/installation/react-15.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ installed, you should do so:
npm i --save react@15 react-dom@15
```

Further, enzyme requires the test utilities addon be installed:

```bash
npm i --save-dev react-test-renderer@15
```

Next, to get started with enzyme, you can simply install it with npm:

```bash
Expand Down
6 changes: 0 additions & 6 deletions docs/installation/react-16.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ installed, you should do so:
npm i --save react@16 react-dom@16
```

Further, enzyme requires the test utilities addon be installed:

```bash
npm i --save-dev react-test-renderer@16
```

Next, to get started with enzyme, you can simply install it with npm:

```bash
Expand Down
6 changes: 3 additions & 3 deletions packages/enzyme-adapter-react-15/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
"lodash": "^4.17.4",
"object.assign": "^4.0.4",
"object.values": "^1.0.4",
"prop-types": "^15.5.10"
"prop-types": "^15.5.10",
"react-test-renderer": "^15.5.0"
},
"peerDependencies": {
"enzyme": "^3.0.0",
"react": "^15.5.0",
"react-dom": "^15.5.0",
"react-test-renderer": "^15.5.0"
"react-dom": "^15.5.0"
},
"devDependencies": {
"babel-cli": "^6.24.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/enzyme-adapter-react-16/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
"lodash": "^4.17.4",
"object.assign": "^4.0.4",
"object.values": "^1.0.4",
"prop-types": "^15.5.10"
"prop-types": "^15.5.10",
"react-test-renderer": "^16.0.0-0"
},
"peerDependencies": {
"enzyme": "^3.0.0",
"react": "^16.0.0-0",
"react-dom": "^16.0.0-0",
"react-test-renderer": "^16.0.0-0"
"react-dom": "^16.0.0-0"
},
"devDependencies": {
"babel-cli": "^6.24.1",
Expand Down

0 comments on commit df5415d

Please sign in to comment.