diff --git a/src/lib/endpoint.ts b/src/lib/endpoint.ts index a6bd519..8f463b7 100644 --- a/src/lib/endpoint.ts +++ b/src/lib/endpoint.ts @@ -78,6 +78,7 @@ export class Endpoint { return document; } + /* v8 ignore next */ private async fetchColumn( id: NumberResolvable, key: string, @@ -99,6 +100,7 @@ export class Endpoint { private isMissing = (value: unknown) => value === undefined || value === null; + /* v8 ignore next */ private isValid = (value: unknown, type: Primitive) => { switch (type) { case "number": { @@ -124,6 +126,7 @@ export class Endpoint { } }; + /* v8 ignore next */ private validate = (query: InferQuery): void => { const schema = this.registry.list.query; @@ -167,6 +170,7 @@ export class Endpoint { } else return match[1] ?? ""; } + /* v8 ignore next */ private coerce(value: string, type: T): Primitives[T] { switch (type) { case "boolean": { diff --git a/vitest.config.ts b/vitest.config.ts index ccd343a..8872988 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -2,7 +2,12 @@ import { defineConfig } from "vitest/config"; export default defineConfig({ test: { - coverage: { provider: "v8", reporter: ["text", "json-summary", "lcov", "cobertura"] }, + coverage: { + enabled: true, + provider: "v8", + reporter: ["text", "json-summary", "lcov", "cobertura"], + thresholds: { branches: 75, functions: 80, lines: 80, statements: 80 }, + }, environment: "node", globals: true, hookTimeout: 10_000,