in my Jest test suite,
i use
because of the particular and instable architecture of the software. And this works as expected.
There are some test that must to pass at the first time so for these particular test i need to set
jest.retryTimes(1)
at the beginning of the test, restoring
jest.retryTimes(4)
at the end.
There are two problems :
- The problem is this configuration is global, and test are executed in parallel, so when this test start, it put 1 to jest retry for all the test running at this moment. I would like to make only this particular test fail the first time.
- Jest Circus ignore the update of jest.retryTimes at the beginning and at the end of the test, it keep considering 4 temptative before of raise the failure.
I read the documentation but I think I cannot obtain this result.
any suggestion?
Thanks