feature(madrun) disable web workers, while testing

This commit is contained in:
coderaiser 2019-08-16 18:19:22 +03:00
parent 7d5b3463cc
commit 63be7c8743
2 changed files with 8 additions and 2 deletions

View file

@ -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']),

View file

@ -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",