Skip to content

Commit 5b8b185

Browse files
committed
Also update in vitest
1 parent f809d9f commit 5b8b185

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,6 @@ jobs:
9898
exit 1
9999
fi
100100
101-
COVERAGE=$(jq -r '.total.lines.pct' coverage/coverage-summary.json)
102-
THRESHOLD=1
103-
104-
if (( $(echo "$COVERAGE < $THRESHOLD" | bc -l) )); then
105-
echo "Coverage ($COVERAGE%) is below threshold ($THRESHOLD%)"
106-
exit 1
107-
else
108-
echo "Coverage ($COVERAGE%) meets threshold ($THRESHOLD%)"
109-
fi
110-
111101
release:
112102
runs-on: ubuntu-latest
113103
needs:

vitest.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ export default defineConfig({
88
reporter: ['json', 'lcov', 'text', 'clover', 'json-summary', 'html'],
99
provider: 'v8',
1010
thresholds: {
11-
statements: 80,
12-
branches: 80,
13-
functions: 80,
14-
lines: 80,
11+
statements: 2,
12+
branches: 2,
13+
functions: 2,
14+
lines: 2,
1515
perFile: true,
1616
},
1717
clean: true,

0 commit comments

Comments
 (0)