13 likes
·
567 reads
2 comments
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.
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.