Skip to content

Commit ff35d06

Browse files
ArchILLtectCopilot
andauthored
Update vitest.config.ts
Make coverage thresholds configurable via environment variables Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2082fab commit ff35d06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vitest.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export default defineConfig({
99
coverage: {
1010
reporter: ["text", "lcov"],
1111
thresholds: {
12-
lines: 50,
13-
functions: 50,
14-
statements: 50,
15-
branches: 50,
12+
lines: process.env.COVERAGE_LINES ? parseInt(process.env.COVERAGE_LINES, 10) : 50,
13+
functions: process.env.COVERAGE_FUNCTIONS ? parseInt(process.env.COVERAGE_FUNCTIONS, 10) : 50,
14+
statements: process.env.COVERAGE_STATEMENTS ? parseInt(process.env.COVERAGE_STATEMENTS, 10) : 50,
15+
branches: process.env.COVERAGE_BRANCHES ? parseInt(process.env.COVERAGE_BRANCHES, 10) : 50,
1616
},
1717
},
1818
},

0 commit comments

Comments
 (0)