chore: set up vitest and add zod

This commit is contained in:
Carlos Narro
2026-05-30 12:15:26 +02:00
parent 75de172900
commit 515e9fd7a2
4 changed files with 1454 additions and 6 deletions

17
mvp/b2c/vitest.config.ts Normal file
View File

@@ -0,0 +1,17 @@
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/**'],
thresholds: { lines: 70, functions: 70, statements: 70, branches: 70 },
},
},
});