-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[feature] Ability to pass through options to jest via ng test #754
Comments
hi @johnRambo2k14, do you also set a |
Ah that totally escaped me! I haven't tested it out with jest just yet, I will let you know my findings. |
I will add I am holding off on passing every option into |
Fixes #754 ## Current Behavior `runInBand` and `maxWorkers` are useful for CI environments but are not available through the builder. ## Expected Behavior Both `runInBand` and `maxWorkers` have been added and can be used as per [Jest Troubleshooting](https://jestjs.io/docs/en/troubleshooting#tests-are-extremely-slow-on-docker-and-or-continuous-integration-ci-server). ```sh --max-workers Max number of workers to run tests across. Useful for CI. (https://jestjs.io/docs/en/cli.html#maxworkers-num) --run-in-band Run tests in a single process as opposed to multiple workers. Useful for CI. (https://jestjs.io/docs/en/cli.html#runinband) ```
@FrozenPandaz the It seems a core issue of |
Just to clarify, the "e2e": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "apps/api-e2e/jest.config.js",
"tsConfig": "apps/api-e2e/tsconfig.spec.json",
"runInBand": true
}
} |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
I'm currently experiencing issues where my CI memory limit is being maxed since jest sets a worker for each existing CPU.
It would be great if I can pass in Jest CLI options through including
--runInBand
A full list of CLI commands can be found here:
https://jestjs.io/docs/en/cli.html
The text was updated successfully, but these errors were encountered: