-
Notifications
You must be signed in to change notification settings - Fork 912
Open
Description
complete-intro-to-react/package.json
Line 16 in 03296d5
| "jest-serializer-enzyme" |
If you are going to use React 16,
Replace jest-serializer-enzyme to enzyme-to-json/serializer and include enzyme-to-json as a dev dependency.
For enzyme to work with React 16, you need to yarn add enzyme-adapter-react-16 -D
And then, inside your tests,
import { shallow, configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
beforeAll(() => {
configure({
adapter: new Adapter()
});
});
// your tests here..
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels