Merge branch 'master' into addons_in_repo

This commit is contained in:
Daniel Imms
2019-06-02 12:58:54 -07:00
committed by GitHub
+16 -6
View File
@@ -10,7 +10,7 @@ const path = require('path');
const env = { ...process.env }; const env = { ...process.env };
env.NODE_PATH = path.resolve(__dirname, '../out'); env.NODE_PATH = path.resolve(__dirname, '../out');
const args = [ let testFiles = [
'./out/*test.js', './out/*test.js',
'./out/**/*test.js', './out/**/*test.js',
'./out/*integration.js', './out/*integration.js',
@@ -18,8 +18,18 @@ const args = [
'./lib/**/*test.js' './lib/**/*test.js'
]; ];
cp.spawnSync(path.resolve(__dirname, '../node_modules/.bin/mocha'), args, { // ability to inject particular test files via
cwd: path.resolve(__dirname, '..'), // yarn test [testFileA testFileB ...]
env, if (process.argv.length > 2) {
stdio: 'inherit' testFiles = process.argv.slice(2);
}); }
cp.spawnSync(
path.resolve(__dirname, '../node_modules/.bin/mocha'),
testFiles,
{
cwd: path.resolve(__dirname, '..'),
env,
stdio: 'inherit'
}
);