Please sign in to comment.
[enzyme-adapter-react-helper] Ensure that the correct version of an a…
…dapter gets installed Particularly when only specifying a major version of React to match against. When we pass in something like `16`, we really mean "any React 16 version". Essentially >= 16 and < 17. To get that behavior, we need to treat our input as a Range, and get its intersection with the value we test against. This is basically where we were prior to airbnb#2116, except that pre-release version support has been dropped, which fixes the issue that PR was attempting to fix.
- Loading branch information...
Showing with 13 additions and 9 deletions.