Skip to content

Commit

Permalink
fix(vitest): respect process.exitCode when exit method is called (#549)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
shiwano and antfu committed Jan 17, 2022
1 parent 2300ef8 commit 673e13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/core.ts
Expand Up @@ -360,7 +360,7 @@ export class Vitest {
Promise.race([closePromise, timeoutPromise]).then(
() => {
clearTimeout(timeout)
process.exit(0)
process.exit()
},
(err) => {
clearTimeout(timeout)
Expand Down

0 comments on commit 673e13a

Please sign in to comment.