Coding task · NestJS course · Module 6: Error Handling and Monitoring

E2E Test with Supertest

Create an E2E test that checks the GET /health endpoint using supertest

Task

Complete the E2E test that creates a NestApplication with Test.createTestingModule, initializes it (app.init()), and uses request(app.getHttpServer()).get('/health').expect(200)