Skip to content

Instantly share code, notes, and snippets.

/app.test.ts Secret

Created Mar 7, 2018
Embed
What would you like to do?
import request from 'supertest';
import app from './app';
test('Hello world works', async () => {
const response = await request(app.callback()).get('/');
expect(response.status).toBe(200);
expect(response.text).toMatchSnapshot();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment