You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 hook Test 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 test
Pitch
Config
The text was updated successfully, but these errors were encountered:
馃殌 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: