Simen Bekkhus
Simen Bekkhus
I've been snoozing this issue for weeks meaning to get back to it 😛 The OP was very detailed and well thought out, so I wanted to let it simmer...
PR very much welcome adding support for this :+1:
I think we'd need a new option to `retryTimes` (maybe `entireDescribe: true` or some such) which attached it to the current `describe` rather than only rerunning failing tests.
Hi! I think marking a dependency _inside_ of another test would mean we'd still have to run it, then bail with a special error. Some API where the dependency is...
I started working on this, and I think it makes sense to leave `.mock` and `.doMock` for CJS, and introduce a new `.mockModule` or something for ESM. It will require...
One thing to note is that it will be impossible to mock `import` statements as they are evaluated before any code is executed - which means it's not possible to...
I want to add `jest.mockModule`, but since that's a new API and not a breaking change it might not go into Jest 27 at release. A PR would be very...
As a status update, I've opened up a PR here: #10976
yeah, there is not workaround if you wanna use native ESM until that lands
yep, that'll keep working