stack/apps/e2e/vitest.config.ts
Konsti Wohlwend bae04178cc
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Emulator Test / docker (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Test / docker (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (latest) (push) Has been cancelled
Preview Docs / run (push) Has been cancelled
Dev Environment Test / restart-dev-and-test (push) Has been cancelled
Run setup tests / setup-tests (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
Endpoints branching (#659)
Co-authored-by: Zai Shi <zaishi00@outlook.com>
Co-authored-by: moritz <moritsch@student.ethz.ch>
2025-04-30 15:39:47 -07: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 ? 40_000 : 20_000,
globalSetup: './tests/global-setup.ts',
setupFiles: [
"./tests/setup.ts",
],
snapshotSerializers: ["./tests/snapshot-serializer.ts"],
},
}),
)