Some of my test files in Jest are flaky. Identifying individual files and adding jest.retryTimes(2) to the top of those files helps. I would like to add that as a global setting rather than needing to add that line to the top of every file.
Is there a way to configure Jest so that it will always retry failed tests rather than needing to add that setting in each file?
Thanks!