Skip to content

Commit

Permalink
fix(): propagate failed exit code to the process (fabricjs#8187)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 authored and frankrousseau committed Jan 6, 2023
1 parent 57b9a66 commit 0243212
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,12 @@ async function test(suite, tests, options = {}) {
shell: true,
stdio: 'inherit',
detached: options.dev
});
})
.on('exit', (code) => {
// propagate failed exit code to the process for ci to fail
// don't exit if tests passed - this is for parallel local testing
code && process.exit(code);
});

if (options.launch) {
// open localhost
Expand Down

0 comments on commit 0243212

Please sign in to comment.