test: open autowatch

pull/165/head
tangjinzhou 2018-05-12 13:08:35 +08:00
parent 7b8118e662
commit a04637ec9f
2 changed files with 2 additions and 2 deletions

View File

@ -10,5 +10,5 @@ testsContext.keys().forEach(testsContext)
// require all src files except main.js for coverage.
// you can also change this to match only the subset of files that
// you want coverage for.
const srcContext = require.context(`../components`, true, /^\.(\.js|\.jsx)?$/)
const srcContext = require.context(`../components/${process.env.SCOPE}`, true, /^\.(\.js|\.jsx)?$/)
srcContext.keys().forEach(srcContext)

View File

@ -29,7 +29,7 @@ module.exports = function (config) {
},
port: 9876,
colors: true,
// autoWatch: true,
autoWatch: true,
webpack: merge(
{
plugins: [