25 lines
640 B
TypeScript
25 lines
640 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) },
|
|
},
|
|
test: {
|
|
environment: 'node',
|
|
include: ['tests/**/*.test.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
include: [
|
|
'src/budget/**',
|
|
'src/lib/auth/password.ts',
|
|
'src/lib/auth/tokens.ts',
|
|
'src/lib/auth/authz.ts',
|
|
'src/lib/validation/signup.ts',
|
|
'src/lib/billing/plan.ts',
|
|
],
|
|
thresholds: { lines: 70, functions: 70, statements: 70, branches: 70 },
|
|
},
|
|
},
|
|
});
|