Add script to package.json to run test with watch and set default to single run

old
Javi Velasco 2015-07-24 13:13:32 +02:00
parent 285361f044
commit 42e98636cd
2 changed files with 3 additions and 3 deletions

View File

@ -3,11 +3,10 @@ webpack = require('webpack')
module.exports = (config) ->
config.set
browsers : ['PhantomJS']
singleRun : false
singleRun : true
frameworks : ['mocha']
files : ['./node_modules/react/dist/react-with-addons.js', 'tests.webpack.js']
reporters : ['dots']
browserNoActivityTimeout: 30000
preprocessors:
'tests.webpack.js' : ['webpack']

View File

@ -14,7 +14,8 @@
"build" : "webpack",
"watch" : "webpack --watch",
"deploy" : "NODE_ENV=production webpack -p",
"test" : "karma start"
"test" : "karma start",
"test:watch" : "karma start --no-single-run"
},
"bugs" : {
"url" : "https://github.com/soyjavi/react-toolbox/issues",