Skip to content

Commit 05218ff

Browse files
committed
test message
1 parent 877db19 commit 05218ff

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
key: deps-hash-{{ checksum "yarn.lock" }}
2020

2121
- run:
22-
name: "Unit Tests"
22+
name: "Unit Tests with Coverage"
2323
command: |
2424
mkdir -p ./reports/junit/
25-
yarn test:ci
25+
yarn test:ci --coverage
2626
environment:
2727
JEST_JUNIT_OUTPUT_DIR: ./reports/junit/
2828
JEST_JUNIT_OUTPUT_NAME: test-results.xml
@@ -35,7 +35,7 @@ jobs:
3535
command: |
3636
curl -Os https://uploader.codecov.io/latest/linux/codecov
3737
chmod +x codecov
38-
./codecov -t ${CODECOV_TOKEN}
38+
./codecov -t ${CODECOV_TOKEN} -f ./coverage/coverage-final.json
3939
4040
- store_artifacts:
4141
path: ./coverage

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@
1515
"test:coverage": "jest --coverage",
1616
"test-integration": "start-server-and-test start http://localhost:3000 cy:run"
1717
},
18+
"jest": {
19+
"collectCoverageFrom": [
20+
"src/**/*.{js,jsx,ts,tsx}",
21+
"!src/**/*.d.ts",
22+
"!src/**/*.stories.{js,jsx,ts,tsx}",
23+
"!src/types/**/*"
24+
],
25+
"coverageReporters": [
26+
"json",
27+
"lcov",
28+
"text",
29+
"clover"
30+
]
31+
},
1832
"dependencies": {
1933
"@docusaurus/core": "^3.8.0",
2034
"@docusaurus/preset-classic": "^3.8.0",

0 commit comments

Comments
 (0)