Adds electoral nuclei, leaderships, updates, and WhatsApp invite flows behind campaign auth, plus the consolidated schema migration that Vercel applies on deploy.
18 lines
444 B
TypeScript
18 lines
444 B
TypeScript
import path from 'node:path'
|
|
|
|
import react from '@vitejs/plugin-react'
|
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'server-only': path.resolve(process.cwd(), 'tests/helpers/serverOnly.ts'),
|
|
},
|
|
},
|
|
plugins: [tsconfigPaths(), react()],
|
|
test: {
|
|
environment: 'jsdom',
|
|
include: ['tests/unit/**/*.unit.spec.ts'],
|
|
},
|
|
})
|