// Prisma integration tests with Vitest // https://www.prisma.io/blog/testing-series-3-aBUyF8nxAn import { sveltekit } from "@sveltejs/kit/vite"; import { defineConfig } from "vitest/config"; // eslint-disable-next-line no-undef const DATABASE_URL = process.env.TEST_DATABASE_URL ?? "postgresql://postgres:1234@localhost:5432/test?schema=public"; // eslint-disable-next-line no-console console.log("TEST_DATABASE_URL", DATABASE_URL); export default defineConfig({ plugins: [sveltekit()], test: { include: ["tests/integration/**/*.ts"], minWorkers: 1, maxWorkers: 1, maxConcurrency: 1, setupFiles: ["tests/helpers/setup.ts"], env: { DATABASE_URL, }, }, });