diff --git a/madrun.js b/madrun.js index d6c23998..f1ce2c66 100644 --- a/madrun.js +++ b/madrun.js @@ -36,7 +36,13 @@ module.exports = { 'spell': () => 'yaspeller .', 'fix:lint': () => run(['lint', 'lint:css'], '--fix'), 'lint:progress': () => run('lint', '-f progress'), - 'test': () => `tape 'test/**/*.js' '{client,static,common,server}/**/*.spec.js'`, + 'test': () => { + const env = 'THREAD_IT_COUNT=0'; + const cmd = 'tape'; + const names = `'test/**/*.js' '{client,static,common,server}/**/*.spec.js'`; + + return `${env} ${cmd} ${names}`; + }, 'test:client': () => `tape 'test/client/**/*.js`, 'test:server': () => `tape 'test/**/*.js' 'server/**/*.spec.js' 'common/**/*.spec.js'`, 'wisdom': () => run(['lint:all', 'build', 'test']), diff --git a/package.json b/package.json index 4e3ec8f2..d920bb5d 100644 --- a/package.json +++ b/package.json @@ -154,7 +154,7 @@ "socket.io-client": "^2.1.1", "squad": "^3.0.0", "table": "^5.0.2", - "thread-it": "^1.0.1", + "thread-it": "^1.1.0", "try-catch": "^2.0.0", "try-to-catch": "^1.0.2", "tryrequire": "^2.0.1",