Tag
jest
Published articles tagged jest.
Testing NestJS applications
Dependency injection is what makes a NestJS app easy to test: any provider can be swapped for a fake before the module is compiled. This chapter covers unit tests with the testing module, overriding providers and guards, and end-to-end tests that send real HTTP requests with supertest.