Skip to content

Commit

Permalink
Merge pull request #9 from felipeog/coverage
Browse files Browse the repository at this point in the history
Add coverage
  • Loading branch information
felipeog authored Jun 18, 2022
2 parents fcef738 + d5fafd2 commit a6a6208
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 14

- name: Jest run
run: |
npm ci
npm run jest:ci
- name: Jest run and coverage
uses: ArtiomTr/jest-coverage-report-action@v2

integration:
needs: unit
Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ module.exports = {
transform: {
".+\\.(css)$": "jest-css-modules-transform",
},
collectCoverageFrom: ["<rootDir>/src/**/*.{js,jsx}"],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "solid-scripts start",
"build": "solid-scripts build",
"jest:dev": "jest --onlyChanged --watch --verbose",
"jest:ci": "jest --bail --verbose",
"jest:ci": "jest --bail --verbose --collect-coverage",
"cy:dev": "cypress open",
"cy:ci": "cypress run"
},
Expand Down

0 comments on commit a6a6208

Please sign in to comment.