Retry Tests
You can choose to retry failed tests up to a certain number of times. This feature is designed to handle end-to-end tests (functional tests/Selenium…) where resources cannot be easily mocked/stubbed. It’s not recommended to use this feature for unit tests.
This feature does re-run a failed test and its corresponding beforeEach/afterEach
hooks, but not before/after
hooks.
this.retries()
has no effect on failing hooks.