DEV Community

Discussion on: Testing NodeJs/Express API with Jest and Supertest

Collapse
 
martinnuc profile image
Martin Nuc

It looks like the database is not refreshed between endpoint tests, right? Means endpoint tests could affect each other, right?

Collapse
 
nedsoft profile image
Chinedu Orie

Yes, that is definitely a short-cut solution, you could make each test suite independent of each other