Get tests working on node that requires shell arg
These silently fail on Windows after a recent change in node.js
This commit is contained in:
+5
-1
@@ -50,6 +50,7 @@ server.stdout.on('data', (data) => {
|
||||
[...testFiles, ...flagArgs], {
|
||||
cwd: path.resolve(__dirname, '..'),
|
||||
env,
|
||||
shell: true,
|
||||
stdio: 'inherit'
|
||||
}
|
||||
);
|
||||
@@ -61,7 +62,10 @@ server.stdout.on('data', (data) => {
|
||||
|
||||
server.kill();
|
||||
|
||||
process.exit(run.status);
|
||||
if (run.error) {
|
||||
console.error(run.error);
|
||||
}
|
||||
process.exit(run.status ?? -1);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user