You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have a setting for the --ci flag in jest config files
Motivation
I'd like to use a single test script for both local and ci, and enable jest's --ci mode when CI=true (i.e. I'm running in CI such as GitHub actions)
I'm happy to do this env var check in the jest.config.js, but there's no way to set the ci mode from the config file: https://jestjs.io/docs/configuration
This is important for me when working with a monorepo, to avoid duplicated scripts in many package.json files to allow bulk running of tests with something like turbo run test and to avoid forcing folks to add a test:ci script to every package.json
Example
No response
Pitch
For flexibility, command line options should have a corresponding config file setting
The text was updated successfully, but these errors were encountered:
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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🚀 Feature Proposal
Have a setting for the
--ci
flag in jest config filesMotivation
I'd like to use a single
test
script for both local and ci, and enable jest's--ci
mode when CI=true (i.e. I'm running in CI such as GitHub actions)I'm happy to do this env var check in the jest.config.js, but there's no way to set the
ci
mode from the config file: https://jestjs.io/docs/configurationThis is important for me when working with a monorepo, to avoid duplicated scripts in many package.json files to allow bulk running of tests with something like
turbo run test
and to avoid forcing folks to add atest:ci
script to every package.jsonExample
No response
Pitch
For flexibility, command line options should have a corresponding config file setting
The text was updated successfully, but these errors were encountered: