diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d9bc4c3..63126844 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,13 +104,6 @@ jobs: # instead so tests run once per PR, not twice. run: npm run test -- --run --coverage - - name: Upload coverage - uses: codecov/codecov-action@v4 - with: - files: ./Client.React/coverage/coverage-final.json - flags: frontend - fail_ci_if_error: false - - name: Build run: npm run build env: diff --git a/Client.React/vite.config.ts b/Client.React/vite.config.ts index 6f47ec22..8ef34a43 100644 --- a/Client.React/vite.config.ts +++ b/Client.React/vite.config.ts @@ -34,6 +34,9 @@ export default defineConfig({ coverage: { provider: 'v8', reporter: ['text', 'json', 'html', 'lcov'], + // CI gate (npm run test -- --run --coverage): fails the build if frontend coverage drops. + // Set a few points under the 2026-10-04 baseline (79.8/80.5/73.9/82.3) — raise as it grows. + thresholds: { statements: 75, branches: 75, functions: 70, lines: 78 }, exclude: [ 'node_modules/', 'src/setupTests.ts',