mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-10-07 03:23:37 +00:00
ci: add code coverage report
This commit is contained in:
parent
b58a84d18e
commit
933737c0fb
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -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
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user