Skip to content

Commit

Permalink
ci: enforce vitest coverage thresholds (#2970)
Browse files Browse the repository at this point in the history
  • Loading branch information
wescopeland authored Dec 30, 2024
1 parent bff76fc commit 132c31a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint:eslint": "eslint public/js resources/js postcss.config.js tailwind.config.js vite.config.ts --cache",
"fix": "pnpm fix:eslint",
"fix:eslint": "eslint public/js resources/js postcss.config.js tailwind.config.js vite.config.ts --fix",
"test": "TZ=UTC vitest run --reporter=dot",
"test": "TZ=UTC vitest run --coverage --coverage.reporters=text --reporter=dot",
"test:coverage": "TZ=UTC vitest --ui --coverage --reporter=dot",
"test:watch": "TZ=UTC vitest",
"tsc": "tsc --noEmit --skipLibCheck",
Expand Down
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ export default defineConfig(({ mode, isSsrBuild }) => {
'**/*.spec.ts',
'**/*.spec.tsx',
],
thresholds: {
lines: 98.5,
functions: 100,
branches: 98.5,
statements: 98.5,
},
},
},

Expand Down

0 comments on commit 132c31a

Please sign in to comment.