callstack / reassure

Performance testing companion for React and React Native
https://callstack.github.io/reassure/
MIT License
1.26k stars 28 forks source link

Add a flag to allow testRegex pattern in jest config #508

Closed Saurabh1708 closed 1 month ago

Saurabh1708 commented 3 months ago

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.

mdjastrzebski commented 3 months ago

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
Saurabh-Dream11 commented 2 months ago

Thanks for the update. Will try implementing TEST_RUNNER_ARGS.

mdjastrzebski commented 1 month ago

This issue has been resolved in Reassure v1.2.0 🎉