mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
20 lines
512 B
TypeScript
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 ? 60_000 : 30_000,
|
|
globalSetup: './tests/global-setup.ts',
|
|
setupFiles: [
|
|
"./tests/setup.ts",
|
|
],
|
|
snapshotSerializers: ["./tests/snapshot-serializer.ts"],
|
|
},
|
|
}),
|
|
)
|