import { fileURLToPath } from "node:url"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vitest/config"; export default defineConfig({ plugins: [react()], server: { fs: { allow: [ fileURLToPath(new URL(".", import.meta.url)), fileURLToPath(new URL("../common", import.meta.url)), "/workspace/common", ], }, }, test: { globals: true, environment: "jsdom", include: ["src/**/*.{test,spec}.{ts,tsx}"], }, });