Files
Momento/memento-note/vitest.config.ts
Antigravity 8283c4e140
Some checks failed
CI / Lint, Test & Build (push) Successful in 12m12s
Deploy to Production / Build and Deploy (push) Has been cancelled
fix(ci): tests unitaires Vitest uniquement, sans Playwright ni migrations
Les tests migration exigent un schéma aligné via db push (hors scope CI).
Trois fichiers unitaires importaient @playwright/test par erreur.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-17 09:01:27 +00:00

39 lines
802 B
TypeScript

import { defineConfig } from 'vitest/config'
import path from 'path'
export default defineConfig({
test: {
globals: true,
environment: 'node',
setupFiles: ['./tests/setup.ts'],
include: ['tests/unit/**/*.test.ts'],
exclude: ['node_modules', 'tests/e2e'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'tests/',
'**/*.test.ts',
'**/*.spec.ts',
'prisma/',
'next-env.d.ts'
],
thresholds: {
lines: 80,
functions: 80,
branches: 80,
statements: 80
}
},
testTimeout: 30000,
hookTimeout: 30000,
fileParallelism: false
},
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
},
},
})