Open 4ndh4k opened 2 years ago
Ah this was an issue of rehabbing the test from integration to e2e as that was the more appropriate term
Ah, actually, no I see what happened. I removed it because it was being ran with the unit tests and it required the running of a database server. It should have been moved to its own directory with its own test command and jest config, like the e2e tests, I just didn't set that up at the time.
Ah, ok thanks! Yeah, that makes sense.
Regarding naming things, in our project we try to distinguish between integration tests and e2e test in such a way that the integration is testing e.g a service in its smallest possible environment, just like the cat.integration.spec.ts, where as e2e attempt to test the whole app from its public APIs and from the perspective of a user journey..
But I see it's common to call both e2e tests
As I was looking for some integration test inspiration I found this promising repo and even a reference to cat.integration.spec.ts in the README. Unfortunately it seems the actual file has been removed in fa73e575a1451ae0419cfc027404a685372e9d6d. 😢
Unless that was a mistake I suppose it should be fixed in the README. Out of curiosity, why was it removed?