test: run in series
MODIFY
package-scripts.js
package-scripts.js
@@ -16,9 +16,7 @@ const tests = testTypes.map(cmd => {
let tests = _(['plain', 'mocha', 'typescript', 'everything'])
.map(t => [t, `test/commands/${cmd}/${t}.test.js`])
.map(([t, s]) => [t, process.env.CIRCLECI ? `MOCHA_FILE=reports/mocha-${t}.xml ${mocha} --reporter mocha-junit-reporter ${s}` : `${mocha} ${s}`])
- tests = process.platform === 'win32' ?
- series(...tests.map(t => t[1]).value()) :
- concurrent(tests.fromPairs().value())
+ tests = series(...tests.map(t => t[1]).value())
if (process.env.CIRCLECI) {
return [cmd, series(mkdirp('reports'), tests)]
}

MODIFY
test/run.js
test/run.js
@@ -18,7 +18,8 @@ module.exports = (type, features) => {
if (features === 'everything') options = '--options=typescript,mocha,semantic-release'
if (features === 'typescript') options = '--options=typescript'
if (features === 'mocha') options = '--options=mocha'
- let dir = CI ? tmp.tmpNameSync() : path.join(__dirname, `../tmp/test-${type}/${features}`)
+ let dir = CI ? tmp.tmpNameSync() : path.join(__dirname, '../tmp')
+ dir = path.join(dir, type, features)
sh.rm('-rf', dir)
sh.exec(`node ./bin/run ${type} ${dir} --defaults ${options}`)
sh.cd(dir)

test: run in series