Add a flag to allow testRegex pattern in jest config
Closed this issue · 3 comments
Is your feature request related to a problem? Please describe.
My org uses testRegex in the jest.config instead of testMatch and since both cannot exist simultaneously, we have to modify the config before running the reassure tests.
Describe the solution you'd like
I would want to be able to add a --testRegex flag to the reassure measure command to be able to use testRegex instead of testMatch
Describe alternatives you've considered
I'm open to suggestions for a better solution.
I am considering adding a feature where reassure
would foward all passed options to underlying jest
bin. It seams that would solve your issue.
At the moment use can use TEST_RUNNER_ARGS
args to override the options passed to the test runner. See here:
TEST_RUNNER_ARGS="--runInBand --testRegex=...." yarn reassure
Thanks for the update. Will try implementing TEST_RUNNER_ARGS
.
This issue has been resolved in Reassure v1.2.0 🎉