Skip to content

Commit

Permalink
~ update module
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcome committed Nov 1, 2018
1 parent 5f88c5b commit 63400fb
Show file tree
Hide file tree
Showing 3 changed files with 4,417 additions and 4,658 deletions.
9 changes: 5 additions & 4 deletions karma.conf.js
Expand Up @@ -2,6 +2,7 @@
* karma 测试配置文件
* @author ydr.me
* @create 2016-04-20 21:15
* @update 2017年11月30日14:56:48
*/


Expand Down Expand Up @@ -68,12 +69,12 @@ module.exports = function (config) {
included: false
},
{
// 加载 src 下的原始文件,但不直接引入,使用模块加载器引入
pattern: './test/test.**',
// 加载 test 下的单元测试文件,但不直接引入,使用模块加载器引入
pattern: './test/**/test.*.js',
included: false
},
{
// 加载 test 下的入口文件,但不直接引入,使用模块加载器引入
// 加载 test 下的入口文件,直接引入
pattern: './test/main.js',
included: true
}
Expand All @@ -89,7 +90,7 @@ module.exports = function (config) {
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
// 原始模块,需要测试覆盖率
'./src/index.js': ['coverage']
'./src/**/*.js': ['coverage']
},


Expand Down

0 comments on commit 63400fb

Please sign in to comment.