-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
No explanation what to do with configuration file #2546
Comments
That entirely depends on your test framework - and that framework's documentation usually would explain how you do a "setup" file for your test suite. |
Thanks @ljharb for the fast response. I understand. Even your comment to add to this section I think would be helpful with some examples. Like for create-react-app there is src/setupTests.js file that can do it. There is even issue on stackoverflow |
Yes, CRA uses jest, which has its own documentation for how to do a setup file. A PR to improve the docs is welcome. |
@ljharb I can work on this if you want to assign to me |
There’s no need for assignment; just make the PR and link it when you’re ready. |
It is not a big issue, however, it is a bit frustrating that I can not find in the "Installation" section what is the best way and how to implement configured enzyme instance in my project:
If you can give an idea how to handle it it would be nice 😃
The text was updated successfully, but these errors were encountered: