Skip to content

Commit 72d937c

Browse files
committed
chore(ci): set test coverage thresholds
write codecov config
1 parent f64e025 commit 72d937c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

codecov.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@ coverage:
55
target: auto
66
patch:
77
packages:
8-
target: auto
8+
target: 80%
99
flags:
1010
- packages
11+
lines:
12+
target: 80%
13+
branches:
14+
target: 80%
15+
statements:
16+
target: 80%
17+
functions:
18+
target: 100%
1119

1220

1321
github_checks:

packages/thirdweb/test/vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineConfig({
1515
coverage: {
1616
all: false,
1717
provider: "v8",
18-
reporter: process.env.CI ? ["lcov"] : ["text", "json", "html"],
18+
reporter: process.env.CI ? ["lcov", "json"] : ["text", "json", "html"],
1919
exclude: [
2020
// test files do not count
2121
"**/*.test.ts",

0 commit comments

Comments
 (0)