#Testing controllers and app
7 messages · Page 1 of 1 (latest)
I usually do them in an e2e-spec and make use of a tool called pactum for http testing
Thanks for your input. I have some tests that are e2e-spec but still mock a small part of the application or disable things like global auth guards so it feels a bit wrong to call them “e2e” but they’re not exactly unit tests
You could make an intermediary int-spec for integration testing, but that's one more test type to worry about
Do you keep your e2e-spec in that tests folder or do you put some close to your modules as well?