You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing jest-enzyme using the instructions outlined here causes the test suite to break.
Test suite failed to run
TypeError: expect.addSnapshotSerializer is not a function
at Object.<anonymous> (node_modules/jest-enzyme/lib/index.js:23:8)
at Object.<anonymous> (src/setupTests.js:1:156)
Expected behavior
Using jest-enzyme with src/setupTests.js as outlined in the docs should work.
Actual behavior
Using jest-enzyme with src/setupTests.js as outlined in the docs causes the test suite to fail.
Can you reproduce the problem with latest npm?
Yup!
Description
Installing
jest-enzyme
using the instructions outlined here causes the test suite to break.Expected behavior
Using
jest-enzyme
withsrc/setupTests.js
as outlined in the docs should work.Actual behavior
Using
jest-enzyme
withsrc/setupTests.js
as outlined in the docs causes the test suite to fail.Environment
[email protected]
v6.10.0
4.4.4
OS X El Capitan 10.11.6
N/A - this is in the command line
Reproducible Demo
https://github.com/csalvato/cra-jest-enzyme
The text was updated successfully, but these errors were encountered: