test: add jest config for coverage

This commit is contained in:
xidedix
2018-08-21 18:00:21 +02:00
parent 4c2d2235be
commit d6a4b494c2
3 changed files with 12 additions and 1 deletions
+1
View File
@@ -2,6 +2,7 @@
node_modules node_modules
package-lock.json package-lock.json
/dist /dist
/coverage
/tests/e2e/reports/ /tests/e2e/reports/
selenium-debug.log selenium-debug.log
+4
View File
@@ -1,5 +1,9 @@
## [vue](./README.md) version `changelog` ## [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` ##### `v2.0.0-rc.0`
- test(unit): add some views testing - test(unit): add some views testing
- test(e2e): add testing for mobile `sidebar-show` - test(e2e): add testing for mobile `sidebar-show`
+7 -1
View File
@@ -21,5 +21,11 @@ module.exports = {
'<rootDir>/tests/unit/Dashboard.spec.js' '<rootDir>/tests/unit/Dashboard.spec.js'
], ],
verbose: true, verbose: true,
testURL: "http://localhost/" testURL: "http://localhost/",
collectCoverage: true,
collectCoverageFrom: [
"src/**/*.{js,vue}",
"!**/node_modules/**"
],
coverageReporters: ["html", "text-summary"]
} }