Skip to content

Commit

Permalink
[Tests] be sure to install the proper version of react
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 21, 2018
1 parent 3d88a5f commit cc2f5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Promise.resolve()
const peerDeps = adapterJson.peerDependencies;
const installs = Object.keys(peerDeps)
.filter(key => !key.startsWith('enzyme'))
.map(key => `${key}@${peerDeps[key]}`);
.map(key => `${key}@${key.startsWith('react') ? version : peerDeps[key]}`);

// eslint-disable-next-line no-param-reassign
testJson.dependencies[adapterName] = adapterJson.version;
Expand Down

0 comments on commit cc2f5bc

Please sign in to comment.