- Middleware SSR pour rafraîchir les sessions auth - Route callback /api/auth/callback (échange code PKCE + création contributor) - LoginModal branché sur signInWithPassword - SignupModal + page /inscription/[token] protégée par SIGNUP_SECRET_TOKEN - AuthSection : écoute onAuthStateChange, affiche nom + déconnexion - Entité domaine Contributor (id, reputation) avec tests TDD - Migration : rename user_profiles → contributors, suppression colonne name - Tests colocated avec le code (plus de dossier __tests__/) - Composant SwitchLink extrait dans components/ui
15 lines
274 B
TypeScript
15 lines
274 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['**/*.test.ts'],
|
|
exclude: ['node_modules', 'dist', '.next'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': '/src',
|
|
},
|
|
},
|
|
})
|