From edad2caf8eb91e27c66e90ddb34bddac0a563abf Mon Sep 17 00:00:00 2001 From: LouisLam Date: Tue, 5 Oct 2021 20:40:40 +0800 Subject: [PATCH] return the correct exit code from jest --- server/util-server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/util-server.js b/server/util-server.js index 4aa965875..5620d674b 100644 --- a/server/util-server.js +++ b/server/util-server.js @@ -309,6 +309,6 @@ exports.startUnitTest = async () => { child.on("close", function (code) { console.log("Jest exit code: " + code); - process.kill(process.pid, "SIGINT"); + process.exit(code); }); };