Improve tests isolation

This commit is contained in:
Mariusz Nowak 2019-05-16 10:15:18 +02:00
parent 7cb80fb018
commit db44d68e11
No known key found for this signature in database
GPG Key ID: AA6F4CCD415BF299

View File

@ -35,7 +35,7 @@ const run = path => {
process.stderr.write(String(stderrBuffer));
};
return spawn('./bin/test', ['--require=sinon-bluebird', path], {
env: Object.assign({ FORCE_COLOR: '1' }, process.env),
env: { FORCE_COLOR: '1', PATH: process.env.PATH },
}).then(onFinally, error => {
ongoing.clear();
onFinally(error);