Files
when/packages/db/vitest.config.ts
eleith 41ed19fd96 test(db): stop covering migrations
Column shapes a migration just declared, and every Kysely column callback counts as a function.
2026-07-30 14:06:01 -07:00

20 lines
521 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
coverage: {
include: ['src/**/*.ts'],
// Migrations are write-once and run against a schema, not a call graph. Covering
// them means asserting column shapes a migration just declared, and every Kysely
// column callback counts as a function, so each new migration taxes the ratio.
exclude: ['src/migrations/**'],
thresholds: {
statements: 80,
branches: 80,
functions: 80,
lines: 80
}
}
}
});