Skip to content

Commit 78969e7

Browse files
committed
Updated jest config and travis configuration to point to correct coverage reporter and directory
1 parent 92b20fb commit 78969e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ cache:
77
script:
88
- npm run test:unit
99
after_script:
10-
- cat ./coverage/lcov.info | coveralls
10+
- cat ./tests/coverage/lcov.info | coveralls

jest.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
testMatch: ["**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"],
1414
testURL: "http://localhost/",
1515
watchPlugins: ["jest-watch-typeahead/filename", "jest-watch-typeahead/testname"],
16-
collectCoverage: false,
16+
collectCoverage: true,
1717
collectCoverageFrom: [
1818
"**/*.{js,vue}",
1919
"!**/node_modules/**",
@@ -23,6 +23,6 @@ module.exports = {
2323
"!**/docs/**",
2424
"!**/public/**"
2525
],
26-
coverageReporters: ["html", "text-summary"],
26+
coverageReporters: ["lcov", "text-summary"],
2727
coverageDirectory: "<rootDir>/tests/coverage"
2828
}

0 commit comments

Comments
 (0)