Skip to content

Commit d078e6f

Browse files
committed
Higher schema coverage thresholds
1 parent e927e80 commit d078e6f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

vitest.config.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ export default defineConfig({
88
coverage: {
99
include: ["src/schemas/validation/**/*.yaml"],
1010
thresholds: process.env.BASE !== "dev" ? {
11-
statements: 99.42, // should be 100% but we are missing some tests
12-
lines: 99.42, // should be 100% but we are missing some tests
13-
functions: 92.58, // should be 100% but we are missing some tests
14-
// branches: 56.77, // need to discuss whether we should check/increase this
11+
statements: 100, // JSON Schema keywords
12+
lines: 100,
13+
functions: 100, // subschemas, for example with `properties`
14+
// branches: 56.77, // branch coverage isn't that useful
1515
} : {}
1616
},
1717
forceRerunTriggers: ['**/scripts/**', '**/tests/**'],
18-
testTimeout: 10000, // 10 seconds
18+
testTimeout: 20000, // 20 seconds
1919
},
2020
})

0 commit comments

Comments
 (0)