-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nam Hoang <[email protected]>
- Loading branch information
1 parent
e91c0ef
commit 34fcfbc
Showing
4 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,10 +40,14 @@ jobs: | |
run: | | ||
yarn test:coverage | ||
- run: cat coverage/coverage-final.json | ||
- name: Coverage | ||
uses: artiomtr/jest-coverage-[email protected] | ||
- name: Jest Coverage Comment | ||
uses: MishaKav/jest-coverage-comment@main | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
coverage-file: coverage/coverage-final.json | ||
base-coverage-file: coverage/coverage-final.json | ||
threshold: 80 | ||
title: Code Coverage Report | ||
multiple-files: | | ||
All packages, ./coverage/coverage-summary.json | ||
Components, ./packages/components/coverage/coverage-summary.json | ||
Mock app, ./packages/mock-app/coverage/coverage-summary.json | ||
Services, ./packages/services/coverage/coverage-summary.json | ||
UNTP test suite, ./packages/untp-test-suite/coverage/coverage-summary.json | ||
VC test suite, ./packages/vc-test-suite/coverage/coverage-summary.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module.exports = { | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
collectCoverageFrom: ['<rootDir>/src/**/*.{ts,tsx}', '!**/*.d.ts'], | ||
collectCoverageFrom: ['<rootDir>/src/**/*.{ts,tsx}', '<rootDir>/src/**/*.{js,jsx}', '!**/*.d.ts'], | ||
coverageDirectory: '<rootDir>/coverage', | ||
coverageReporters: ['json', 'text', 'lcov'], | ||
coverageReporters: ['json', 'json-summary', 'text', 'lcov'], | ||
verbose: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters