-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Allow specifying --runInBand in config file #6709
Comments
Related: #3215 |
Woops didn't find that originally, thanks |
Closing as a dupe of #3215 👌 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
🚀 Feature Proposal
Add an option to the file-based config equivalent to setting
--runInBand
on the CLIMotivation
For node projects that have external dependencies (e.g., sqlite, filesystem, shared libs) that can't (easily) be made safe to access in parallel, it would be nice to always force jest to run sequentially.
Example
Pitch
The main alternative solution would be to add the flag to a package script (e.g.,
"test": "jest --runInBand"
). This requires configuring all editor plugins (like this one) which duplicates these settings and makes it harder to have node and broweser packages together. In my own setup, it's easier to always run jest with--runInBand
, but that's unnecessarily slow many times.The text was updated successfully, but these errors were encountered: