-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Including the Hooks in the jest.retryTimes #15002
Comments
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
馃殌 Feature Proposal
I want to include the jest hooks (
boforeAll,beforeEach,afterEach,afterAll
) when the test is failed.Motivation
the hooks are helpful to reduce the repetitive code that we write in each step. If the hooks are not included as part of the retry the tests block code will have lot of repetitive code and there will be lot of maintenance on the tests.
Example
I am going to verify the checkout step with the following tests. And after each tests I am reloading the page using
afterEach
hookTest 1: Want to verify the checkout steps are visible
Test 2: Want to verify the current step is marked with a tag as active
for both the tests i will be using an hook
beforeEach
to navigate till the checkout page.if the test 2 is failed due to some it will execute the
afterEach
,beforeEach
and the testPitch
Config
The text was updated successfully, but these errors were encountered: