Closed hananmalka closed 2 years ago
@hananmalka unfortunately, jest uses two different runners to find test files to test and to find tests in those files to run. This package is the runner which is responsible for finding files to test. Your suggestion relates to another runner and, unfortunately, out of scope for this package. This is the limitation of the jest framework :man_shrugging:
Hi, I can see there isn't an option to override groups. I think if different groups is declared in "describe" level and in "it" level, the most inner one should be the relevant. For example:
Now, in case we would like to run only regression we will use the command: npm run COMMAND -- --group=regression --> Here "sanity" group won't run In case we would like to run only regression we will use the command: npm run COMMAND -- --group=sanity --> Here "sanity" group won't run
I know it's can be done by using the exclude, but I believe this way is better. WDYT?