Better test readability
An analysis of an e2e test & a more readable way to write them.
let server: App;server = app.getHttpServer();imports: [UsersModule],it('/ (GET)', async () => {
const response = await request(server).get('/');
const { status, body } = response;
expect(status).toBe(HttpStatus.OK);
expect(body).toBe('Hello World!');
});Last updated