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
Nope
Enzyme
node -v
npm -v
yarn --version
npm ls react-scripts
Then, specify:
You can get a basic Enzyme setup without having to eject.
Adding enzyme to React 16+ requires you to eject because you can't configure Jest further to get enzyme's adapters setup.
The text was updated successfully, but these errors were encountered:
you can't configure Jest further to get enzyme's adapters setup.
This is not correct. CRA has always supported running some code before every test:
https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#initializing-test-environment
Here is an example of working setup:
#3199 (comment)
Somebody should send a PR to Enzyme to document usage with CRA, and update our docs as well.
Sorry, something went wrong.
I filed an issue for updating the docs. #3272
No branches or pull requests
Is this a bug report?
Nope
Which terms did you search for in User Guide?
Enzyme
Environment
node -v
: 8.4.0npm -v
:yarn --version
(if you use Yarn): 1.2.0npm ls react-scripts
(if you haven’t ejected): 1.0.14Then, specify:
Expected Behavior
You can get a basic Enzyme setup without having to eject.
Actual Behavior
Adding enzyme to React 16+ requires you to eject because you can't configure Jest further to get enzyme's adapters setup.
The text was updated successfully, but these errors were encountered: