Adds electoral nuclei, leaderships, updates, and WhatsApp invite flows behind campaign auth, plus the consolidated schema migration that Vercel applies on deploy.
19 lines
481 B
TypeScript
19 lines
481 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',
|
|
setupFiles: ['./vitest.setup.ts'],
|
|
include: ['tests/int/**/*.int.spec.ts'],
|
|
},
|
|
})
|