We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
complete-intro-to-react/package.json
Line 16 in 03296d5
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.
jest-serializer-enzyme
enzyme-to-json/serializer
enzyme-to-json
For enzyme to work with React 16, you need to yarn add enzyme-adapter-react-16 -D
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..
The text was updated successfully, but these errors were encountered:
No branches or pull requests
complete-intro-to-react/package.json
Line 16 in 03296d5
If you are going to use React 16,
Replace
jest-serializer-enzyme
toenzyme-to-json/serializer
and includeenzyme-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,
The text was updated successfully, but these errors were encountered: