From 11422ab2e3fc8dde44c46b5c019a859875b7ffad Mon Sep 17 00:00:00 2001 From: "hivecommons-hive[bot]" Date: Tue, 29 Sep 2026 05:45:04 -0400 Subject: [PATCH] chore(coverage): emit lcov and json-summary reporters from vitest config Add lcov and json-summary to the vitest coverage reporters so CI can publish coverage/ as an artifact and a job summary without CLI reporter overrides. Exclude src/utils/context.ts, a type-only module that v8 otherwise reports as an empty 0% row. Signed-off-by: hivecommons-hive[bot] --- vitest.config.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vitest.config.mjs b/vitest.config.mjs index 3ee287a..476f2b4 100644 --- a/vitest.config.mjs +++ b/vitest.config.mjs @@ -15,7 +15,10 @@ export default defineConfig({ coverage: { provider: 'v8', include: ['src/**/*.ts'], - reporter: ['text', 'text-summary'], + // Type-only module: no statements, so v8 reports it as an empty 0% row. + exclude: ['src/utils/context.ts'], + // lcov + json-summary are machine-readable for CI artifacts and job summaries. + reporter: ['text', 'text-summary', 'lcov', 'json-summary'], thresholds: { lines: 95, branches: 93,