Skip to content

Commit 697e7c5

Browse files
committed
configure all packages to produce coverage reports
1 parent 28efa80 commit 697e7c5

30 files changed

+1050
-174
lines changed

.github/workflows/pull-request-develop.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
# install dependencies from the package-lock.json
3131
- name: Install dependencies
32-
run: npm ci --workspaces
32+
run: npm ci --workspaces --force
3333

3434
# builds all packages
3535
build:
@@ -43,7 +43,7 @@ jobs:
4343
cache: npm
4444

4545
- name: "Install dependencies"
46-
run: npm ci --workspaces --include-workspace-root
46+
run: npm ci --workspaces --include-workspace-root --force
4747

4848
- name: "Build"
4949
run: npm run build
@@ -61,7 +61,7 @@ jobs:
6161
cache: npm
6262

6363
- name: "Install dependencies"
64-
run: npm ci --workspaces --include-workspace-root
64+
run: npm ci --workspaces --include-workspace-root --force
6565

6666
- name: "Build"
6767
run: npm run build
@@ -84,7 +84,7 @@ jobs:
8484
cache: npm
8585

8686
- name: "Install dependencies"
87-
run: npm ci --workspaces --include-workspace-root
87+
run: npm ci --workspaces --include-workspace-root --force
8888

8989
- name: "Build"
9090
run: npm run build
@@ -139,7 +139,7 @@ jobs:
139139
cache: npm
140140

141141
- name: "Install dependencies"
142-
run: npm ci --workspaces --include-workspace-root
142+
run: npm ci --workspaces --include-workspace-root --force
143143

144144
- name: "Build"
145145
run: npm run build

jest.config.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ module.exports = {
1717
"^(\\.{1,2}/.*)\\.js$": "$1",
1818
},
1919

20+
collectCoverage: true,
21+
coverageReporters: ["json", "text", "text-summary"],
22+
// TODO: enable
23+
// coverageThreshold: {
24+
// branches: 70,
25+
// functions: 70,
26+
// lines: 70,
27+
// statements: 70,
28+
// },
2029
transform: {
2130
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
2231
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`

0 commit comments

Comments
 (0)