Add script to package.json to run test with watch and set default to single run
parent
285361f044
commit
42e98636cd
|
@ -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']
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue