test: fix false-pos in runner due to exit code
This commit is contained in:
parent
dcbc07021d
commit
0a609a4539
2 changed files with 6 additions and 2 deletions
|
|
@ -16,5 +16,9 @@ const files = fs.readdirSync(TEST_SUITES_DIR);
|
|||
shuffle(files);
|
||||
for (const file of files) {
|
||||
const fullPath = path.join(TEST_SUITES_DIR, file);
|
||||
fork(path.relative(process.cwd(), fullPath));
|
||||
fork(path.relative(process.cwd(), fullPath)).on("exit", (code) => {
|
||||
if (code !== 0) {
|
||||
process.exitCode = 1;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue