jest-react-hooks-shallow
jest-react-hooks-shallow copied to clipboard
Npm7 & React 17 peer dependency error
Hi,
When trying to use this library with npm7 it fails in combination with react 17.
Is it possible to add rules in the deps to be ^16.8 || ˆ17 in your react deps?
I think the correct solution here would be to add the React dependency as a peerDependency
instead of a dependency
, together with allowing ^17.0.0
. Would that be possible?
@mikeborozdin this seems like a quick change that could be beneficial in cases like this.