From 72fde617a39d733dc8885130a47cc2ba44aec04c Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 12 May 2018 13:08:35 +0800 Subject: [PATCH] test: open autowatch --- test/index.js | 2 +- test/karma.conf.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.js b/test/index.js index a803d9e1e..0ba19d5da 100644 --- a/test/index.js +++ b/test/index.js @@ -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) diff --git a/test/karma.conf.js b/test/karma.conf.js index 24373c9e0..bb21917de 100644 --- a/test/karma.conf.js +++ b/test/karma.conf.js @@ -29,7 +29,7 @@ module.exports = function (config) { }, port: 9876, colors: true, - // autoWatch: true, + autoWatch: true, webpack: merge( { plugins: [