Skip to content

Commit

Permalink
Update error message in react-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos authored and ljharb committed Apr 12, 2017
1 parent b48e551 commit cc78489
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/react-compat.js
Expand Up @@ -104,12 +104,19 @@ if (REACT013) {
TestUtils = require('react-addons-test-utils');
}
} catch (e) {
// eslint-disable-next-line no-console
console.error(
'react-addons-test-utils is an implicit dependency in order to support react@0.13-14. ' +
'Please add the appropriate version to your devDependencies. ' +
'See https://github.com/airbnb/enzyme#installation',
);
if (REACT155) {
console.error( // eslint-disable-line no-console
'react-dom@15.5+ is an implicit dependency when using react@15.5+ with enzyme. ' +
'Please add the appropriate version to your devDependencies. ' +
'See https://github.com/airbnb/enzyme#installation',
);
} else {
console.error( // eslint-disable-line no-console
'react-addons-test-utils is an implicit dependency in order to support react@0.13-14. ' +
'Please add the appropriate version to your devDependencies. ' +
'See https://github.com/airbnb/enzyme#installation',
);
}
throw e;
}

Expand Down

0 comments on commit cc78489

Please sign in to comment.