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
+7 -1
View File
@@ -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"]
}