Support React 16#4
Merged
Merged
Conversation
Add React 16 adapter and test setup file.
By default, enzyme-adapter-react-16 is installed per the devDependencies in the package.json. We should uninstall this so it isn't detected by test-setup.js which looks for available adapters.
The setup script runs before each test fixture, so these messages clutter the test output.
Per the Enzyme v2.x to Enzyme v3.x upgrade instructions at https://github.com/airbnb/enzyme/blob/master/docs/guides/migration-from-2-to-3.md.
Uninstall react-addons-test-utils from default devDependencies. Don't install react-test-renderer for React 16.
Fix an issue where the default adapter (v16) is used for React v15 builds in TravisCI.
Fix Node v9.2.0 failures in TravisCI.
Codecov Report
@@ Coverage Diff @@
## develop #4 +/- ##
======================================
Coverage 100% 100%
======================================
Files 4 5 +1
Lines 22 28 +6
Branches 0 1 +1
======================================
+ Hits 22 28 +6
Continue to review full report at Codecov.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support React 16. Upgrade tests to Enzyme 3.