Skip to content

Commit 1c28b0f

Browse files
committed
Fix coverage
1 parent 8ad2fd4 commit 1c28b0f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ jobs:
7777
steps:
7878
- uses: actions/checkout@v2
7979
- uses: codecov/codecov-action@v1
80-
- run: yarn test --coverage # Run test
80+
- run: npm run coverage # Run test
8181
- run: bash <(curl -s https://codecov.io/bash) # Upload to Codecov

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"build": "craco build",
2121
"test": "craco test --watchAll=false",
2222
"test:watch": "craco test",
23-
"coverage": "craco test --coverage --watchAll=false",
23+
"coverage": "craco test --watchAll=false --coverage",
2424
"eject": "craco eject",
2525
"lint": "eslint src --ext js",
2626
"format": "prettier --write \"**/*.+(js|json|css|html)\"",
@@ -66,7 +66,7 @@
6666
},
6767
"jest": {
6868
"collectCoverageFrom": [
69-
"src/components/*.tsx",
69+
"src/components/*.js",
7070
"!<rootDir>/node_modules/**/*",
7171
"!<rootDir>/src/setupTests*"
7272
],

0 commit comments

Comments
 (0)