stack/apps/e2e/vitest.config.ts
2025-12-12 10:26:38 -08:00

20 lines
512 B
TypeScript

import react from '@vitejs/plugin-react'
import { defineConfig, mergeConfig } from 'vitest/config'
import sharedConfig from '../../vitest.shared'
export default mergeConfig(
sharedConfig,
defineConfig({
plugins: [react() as any],
test: {
environment: 'node',
testTimeout: process.env.CI ? 50_000 : 30_000,
globalSetup: './tests/global-setup.ts',
setupFiles: [
"./tests/setup.ts",
],
snapshotSerializers: ["./tests/snapshot-serializer.ts"],
},
}),
)