Skip to content

Commit b94d98e

Browse files
committed
docs:忽略coverage目录提交
1 parent e280d5a commit b94d98e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ npm-debug.log
44
.editorconfig
55
dist/
66
.vscode/
7+
coverage

karma.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @Author: nigel
33
* @Date: 2020-05-15 15:11:17
4-
* @LastEditTime: 2021-01-04 18:28:10
4+
* @LastEditTime: 2021-01-07 17:10:06
55
*/
66
let webpackDevConfig = require('./build/webpack.dev.conf.js')
77

@@ -17,7 +17,10 @@ module.exports = function (config) {
1717
reporters: ['spec', 'coverage'],
1818
coverageReporter: {
1919
dir: './coverage',
20-
reporters: [{ type: 'lcov', subdir: '.' }, { type: 'text-summary' }]
20+
reporters: [
21+
{ type: 'html', subdir: 'report-html' },
22+
{ type: 'lcov', subdir: 'report-lcov' },
23+
]
2124
}
2225
})
2326
}

0 commit comments

Comments
 (0)