-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
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
jest-enzyme not working with create-react-app #293
Comments
I'm not familiar with CRA but I guess this is due the the Jest config key used, |
@pascalduez setupFilesAfterEnv triggers this error:
If I remove setupFilesAfterEnv and just include the testEnvironment key, I get this error:
|
I was able to solve by following this tutorial
Hope this helps 👍 |
I have an app based on
create-react-app
. I importedjest-enzyme
in mysrc/setupTests.js
:when I run my tests, I am seeing the following error:
The text was updated successfully, but these errors were encountered: