return the correct exit code from jest

This commit is contained in:
LouisLam 2021-10-05 20:40:40 +08:00
parent 2bf6a04f81
commit edad2caf8e

View File

@ -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);
});
};