Skip to content

Commit

Permalink
Disable vitest autoUpdate coverage thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
dotNomad committed Jan 15, 2025
1 parent 06d6e2c commit c9af987
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/home-view-unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ jobs:
cache-dependency-path: "**/package-lock.json"
- run: npm install
- run: npm test
- name: Check Vitest thresholds
run: git diff --name-only --exit-code vite.config.ts
11 changes: 6 additions & 5 deletions extensions/vscode/webviews/homeView/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ export default defineConfig({
coverage: {
enabled: true,
thresholds: {
functions: 30.13,
lines: 17.46,
branches: 44.82,
statements: 17.46,
autoUpdate: true,
functions: 30,
lines: 17,
branches: 44,
statements: 17,
// avoid auto-updating thresholds to avoid off by 0.01 differences
autoUpdate: false,
},
},
},
Expand Down

0 comments on commit c9af987

Please sign in to comment.