Skip to content

Commit

Permalink
✅ collectCoverage when test
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondYuan committed Sep 5, 2020
1 parent 5db5bfc commit e1fbe12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
- name: Install Dependencies
run: npm install
- run: npm run lint
- run: npm run test
- run: npm run test --collectCoverage
- run: npm run release
- uses: codecov/codecov-action@v1
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
collectCoverageFrom: ['src/**/**.ts', 'src/**/**.tsx'],
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
testPathIgnorePatterns: ['/lib/', '/node_modules/'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
Expand Down

0 comments on commit e1fbe12

Please sign in to comment.