diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0da3e51..702e372 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,4 +38,4 @@ jobs: run: npm run lint - name: Test - run: npm test + run: npm run test:coverage diff --git a/vite.config.ts b/vite.config.ts index 9fb9ba4..0525a5b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,6 +15,14 @@ export default defineConfig({ 'src/test/', '**/*.d.ts', ], + // Ratchet floor: locked just below current coverage so CI fails on + // regression without going red on today's baseline. Raise as coverage grows. + thresholds: { + statements: 60, + branches: 50, + functions: 65, + lines: 60, + }, }, }, })