Skip to content

Commit 4e42370

Browse files
清理测试配置文件中多余的配置。
1 parent 3d7e6e7 commit 4e42370

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

karma.conf.js

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function (config) {
1515

1616
browserify: {
1717
debug: true,
18-
transform:[ 'browserify-istanbul'],
18+
transform:[ 'browserify-istanbul']
1919
},
2020
// list of files patterns to load in the browser
2121
// false 表示初始化的时候不会使用 script 标签直接将相关 js 引入到浏览器,需要自己写代码加载, 注意添加顺序
@@ -116,7 +116,7 @@ module.exports = function (config) {
116116
'./node_modules/whatwg-fetch/fetch.js': ['browserify'],
117117
'./node_modules/fetch-jsonp/build/fetch-jsonp.js': ['browserify'],
118118
'src/legacy/libs/Lang/*.js': ['browserify'],
119-
'src/common/**/*.js': ['browserify',/* 'coverage'*/],
119+
'src/common/**/*.js': ['browserify'],
120120
'test/common/**/*Spec.js': ['browserify']
121121
},
122122

@@ -133,19 +133,10 @@ module.exports = function (config) {
133133
coverageReporter: {
134134
dir: 'testcoverage/',
135135
reporters: [
136-
{type: 'lcov', subdir: '.'},
136+
{type: 'lcov', subdir: '.'}
137137
]
138138
},
139139

140-
/* coverageReporter: {
141-
reporters: [
142-
{'type': 'text'},
143-
{'type': 'html', dir: 'testcoverage'},
144-
{'type': 'lcov'}
145-
]
146-
},*/
147-
148-
149140
// web server port
150141
port: 9876,
151142

@@ -172,18 +163,9 @@ module.exports = function (config) {
172163
// if true, Karma captures browsers, runs the tests and exits
173164
singleRun: false,
174165

175-
/* plugins: [
176-
'karma-coverage',
177-
'karma-browserify',
178-
'karma-chrome-launcher',
179-
'karma-jasmine',
180-
'karma-teamcity-reporter',
181-
],*/
182-
183166
// Concurrency level
184167
// how many browser should be started simultaneous
185168
concurrency: Infinity,
186169

187-
/* plugins:['karma-sourcemap-loader']*/
188170
})
189171
};

0 commit comments

Comments
 (0)