-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
setupTest.js run repetatly #2539
Comments
Test runs are isolated, so any global shared mutable state needs to be set up from scratch. I don't recommend to use a real database for JavaScript unit tests since watcher can re-run them individually at any point in time. |
It's only for running testing in CI, it's an integration testing. |
Does something like jestjs/jest#949 (comment) work for you? |
sadly no |
I am initiating my database in setupTest.js for testing
the problem is that it rerun for every test file
why is that, can I have a global init script that would run once before any test?
The text was updated successfully, but these errors were encountered: