lundi 6 juillet 2020

How many integration tests, and how many per Jest testing file?

I'm currently running Jest with NestJS and I'm writing some integration tests.

I'm encountering a few timing problems in Jest, and am wondering if it's to do with the number of tests in my file. I have 9 describe blocks, and 32 test and it blocks in my largest file - is this too many?

As a more general question, how many integration tests should I write? All of these tests are to do with the login/register functionality of my app - is this too many? Can I ever have too many tests?

Please could someone also point out how/where can I find out about conventions for Jest and integration testing as a whole?

Aucun commentaire:

Enregistrer un commentaire