Skip to content

Commit

Permalink
close server on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
swain committed May 31, 2022
1 parent c3d0ec5 commit 19320c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/koa.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,6 @@ test('setting a 200-level response code overrides the response', async () => {

const createRes = await client.post('/posts');
expect(createRes.status).toStrictEqual(200);

server.close();
});

0 comments on commit 19320c7

Please sign in to comment.