21 lines
497 B
TypeScript
21 lines
497 B
TypeScript
// vitest.config.ts
|
|
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: [],
|
|
exclude: ['node_modules/**', 'node_modules.nosync/**', '.next/**'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, '.'),
|
|
'server-only': path.resolve(__dirname, 'tests/__mocks__/server-only.ts'),
|
|
},
|
|
},
|
|
})
|