ci: add code coverage report

This commit is contained in:
MrTimscampi 2020-12-21 00:44:07 +01:00
parent b58a84d18e
commit 933737c0fb
2 changed files with 8 additions and 1 deletions

View File

@ -83,3 +83,7 @@ jobs:
- name: Run tests
run: yarn test
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true

View File

@ -12,7 +12,10 @@ module.exports = {
collectCoverage: true,
collectCoverageFrom: [
'<rootDir>/components/**/*.vue',
'<rootDir>/pages/**/*.vue'
'<rootDir>/mixins/**/*.vue',
'<rootDir>/pages/**/*.vue',
'<rootDir>/store/**/*.ts',
'<rootDir>/utils/**/*.ts'
],
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
setupFiles: ['jest-canvas-mock'],