diff --git a/vitest.config.ts b/vitest.config.ts index 9b14b48f47..a874e2e73b 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,12 +1,18 @@ import { defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; +import path from "path"; export default defineConfig({ test: { environment: "jsdom", globals: true, - setupFiles: [], - include: ["src/app/(dashboard)/dashboard/cache/**/*.tsx"], + include: ["src/app/(dashboard)/dashboard/cache/__tests__/**/*.test.tsx"], + exclude: ["**/node_modules/**", "**/.git/**"], }, plugins: [react()], + resolve: { + alias: { + "@": path.resolve(__dirname, "./src"), + }, + }, });