forked from 4SELECTION-gif/OpenAPI-Specification
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mjs
More file actions
20 lines (19 loc) · 813 Bytes
/
vitest.config.mjs
File metadata and controls
20 lines (19 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { defineConfig } from 'vitest/config'
import { jsonSchemaCoveragePlugin } from "@hyperjump/json-schema-coverage/vitest"
export default defineConfig({
plugins: [jsonSchemaCoveragePlugin()],
test: {
globalSetup: ["tests/schema/oas-schema.mjs"],
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
} : {}
},
forceRerunTriggers: ['**/scripts/**', '**/tests/**'],
testTimeout: 10000, // 10 seconds
},
})