From 7dbd5bbe2215288523d4854b757f78012852646e Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Fri, 20 Oct 2023 17:21:44 +0900 Subject: [PATCH] fix: hungup e2e --- playground/node/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/playground/node/index.ts b/playground/node/index.ts index 4decb2c..45f2a20 100644 --- a/playground/node/index.ts +++ b/playground/node/index.ts @@ -10,3 +10,8 @@ const server = createServer((req, res) => { server.listen(8123) console.log('server listening on 8123') + +process.on('SIGINT', () => { + server.close() + process.exit() +})