Created
October 2, 2019 13:17
-
-
Save alanhe421/682575eac9fb1bc39a709986cf1ae028 to your computer and use it in GitHub Desktop.
enzyme-setup.ts
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
import { configure } from 'enzyme'; | |
import Adapter from 'enzyme-adapter-react-16'; | |
// React 16 Enzyme adapter | |
configure({ adapter: new Adapter() }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment