From f01f757b5afb91ed787e2dca197c4ff34baee93f Mon Sep 17 00:00:00 2001 From: Ralf Handl Date: Wed, 13 Aug 2025 17:45:28 +0200 Subject: [PATCH] Higher schema coverage thresholds --- vitest.config.mjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vitest.config.mjs b/vitest.config.mjs index 8b0bcff6d9..8f16741867 100644 --- a/vitest.config.mjs +++ b/vitest.config.mjs @@ -8,13 +8,13 @@ export default defineConfig({ coverage: { include: ["src/schemas/validation/**/*.yaml"], thresholds: process.env.BASE !== "dev" ? { - statements: 99.42, // should be 100% but we are missing some tests - lines: 99.42, // should be 100% but we are missing some tests - functions: 92.58, // should be 100% but we are missing some tests - // branches: 56.77, // need to discuss whether we should check/increase this + statements: 100, // JSON Schema keywords + lines: 100, + // functions: 100, // subschemas, for example with `properties` - to be discussed + // branches: 56.77, // branch coverage isn't that useful } : {} }, forceRerunTriggers: ['**/scripts/**', '**/tests/**'], - testTimeout: 10000, // 10 seconds + testTimeout: 20000, // 20 seconds, sometimes needed on slower machines }, })