Sign in
Log inSign up
Ákos Kőműves

13 likes

·

567 reads

2 comments

Cathal Mac Donnacha
Cathal Mac Donnacha
Dec 22, 2023

I do like the approach of combing related tests. However, if using Jest, the test will timeout if run time exceeds 5 seconds. What would you do this scenario? Increase the jest timeout? Or split the tests so they are under 5 seconds each.

1
·
·1 reply
Ákos Kőműves
Ákos Kőműves
Author
·Dec 23, 2023

5 seconds seems to be a lot, even when combined. In the tests we usually combine, the setup takes a while. Let's say you have an onboarding wizard with a couple of steps. In the end, you have a checkbox that can toggle between the email and SSO login options and show different inputs. Before, we'd have the filling of the onboarding wizard in before each and test the radio options in separate tests. If these are backend tests, not having to recreate a couple of entities at the start but using seed data can also help. I hope this was helpful.

1
·