File tree Expand file tree Collapse file tree 3 files changed +113
-9
lines changed
Expand file tree Collapse file tree 3 files changed +113
-9
lines changed Original file line number Diff line number Diff line change 6060
6161 - name : Tests
6262 run : npm run test
63+
64+ - name : Compare coverage
65+ if : github.ref != 'refs/heads/master'
66+ run :
67+ npx npxie coverage-comparison "${{ github.repository }}" "master" "${{ github.head_ref }}"
68+ " test/coverage/coverage-summary.json" " ${{ github.event.pull_request.number }}" " ${{ secrets.GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change @@ -59,16 +59,10 @@ export default async (): Promise<Config.InitialOptions> => {
5959 }
6060
6161 return {
62- // Indicates whether the coverage information should be collected while executing the test
63- // collectCoverage: false,
64-
65- // The directory where Jest should output its coverage files
62+ collectCoverage : true ,
6663 coverageDirectory : 'coverage' ,
67-
68- // An array of regexp pattern strings used to skip coverage collection
69- coveragePathIgnorePatterns : [ '/node_modules/' ] ,
70-
71- // An array of directory names to be searched recursively up from the requiring module's location
64+ coverageReporters : [ 'lcov' , 'json-summary' ] ,
65+ collectCoverageFrom : [ 'src/**/*.ts' ] ,
7266 moduleDirectories : [ 'node_modules' ] ,
7367
7468 // Run tests from one or more projects
You can’t perform that action at this time.
0 commit comments