test: add jest config for coverage
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
node_modules
|
||||
package-lock.json
|
||||
/dist
|
||||
/coverage
|
||||
|
||||
/tests/e2e/reports/
|
||||
selenium-debug.log
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
## [vue](./README.md) version `changelog`
|
||||
|
||||
##### `v2.0.0-next`
|
||||
- test(unit): add test for User.vue
|
||||
- test: add jest config for coverage
|
||||
|
||||
##### `v2.0.0-rc.0`
|
||||
- test(unit): add some views testing
|
||||
- test(e2e): add testing for mobile `sidebar-show`
|
||||
|
||||
+7
-1
@@ -21,5 +21,11 @@ module.exports = {
|
||||
'<rootDir>/tests/unit/Dashboard.spec.js'
|
||||
],
|
||||
verbose: true,
|
||||
testURL: "http://localhost/"
|
||||
testURL: "http://localhost/",
|
||||
collectCoverage: true,
|
||||
collectCoverageFrom: [
|
||||
"src/**/*.{js,vue}",
|
||||
"!**/node_modules/**"
|
||||
],
|
||||
coverageReporters: ["html", "text-summary"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user