From 6793c2f505721a10243ea41eb70c53e7a4d92e1d Mon Sep 17 00:00:00 2001 From: Wonwoo Choi Date: Fri, 22 Mar 2024 00:31:39 +0900 Subject: [PATCH] Close the server after tests finish --- test/_setup.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/_setup.ts b/test/_setup.ts index a7606f0..0f51e27 100644 --- a/test/_setup.ts +++ b/test/_setup.ts @@ -20,3 +20,6 @@ test.before(async () => { const koa = await createAPIServer(config, log, model); app = koa.listen(); }); +test.after(() => { + app.close(); +});