aboutsummaryrefslogtreecommitdiffstats
path: root/packages/e2e_tests/vitest.config.ts
blob: 2735f1e2f9e852b4aab2f9c23cf73d8bd8a865c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/// <reference types="vitest" />

import tsconfigPaths from "vite-tsconfig-paths";
import { defineConfig } from "vitest/config";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [tsconfigPaths()],
  test: {
    alias: {
      "@/*": "./*",
    },
    globalSetup: ["./setup/startContainers.ts", "./setup/seed.ts"],
    teardownTimeout: 30000,
    include: ["tests/**/*.test.ts"],
    testTimeout: 60000,
    env: {
      NEXTAUTH_SECRET: "secret",
    },
  },
});