Repository Public
1import { fileURLToPath } from "node:url";2import { defineConfig } from "vitest/config";34export default defineConfig({5 resolve: {6 alias: {7 "@": fileURLToPath(new URL("./src", import.meta.url)),8 // `server-only` throws outside a React Server Components bundle; the modules it guards are plain Node code.9 "server-only": fileURLToPath(new URL("./tests/stubs/server-only.ts", import.meta.url)),10 },11 },12 test: { include: ["tests/**/*.test.ts"], environment: "node", testTimeout: 20_000, env: { ATLAS_LOG_LEVEL: "silent" } },13});14