25 lines
570 B
TypeScript
25 lines
570 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: './src/test/setup.ts',
|
|
mockReset: true,
|
|
clearMocks: true,
|
|
restoreMocks: true,
|
|
include: [
|
|
'**/*.e2e.test.{js,jsx,ts,tsx}',
|
|
'**/*.integration.test.{js,jsx,ts,tsx}'
|
|
],
|
|
exclude: [
|
|
'**/node_modules/**',
|
|
'**/dist/**',
|
|
'**/cypress/**',
|
|
'**/.{idea,git,cache,output,temp}/**',
|
|
'**/e2e/**'
|
|
],
|
|
},
|
|
}) |