Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

chore: add vitest config for component testing

oyi77fc90ad594956
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"),
+ },
+ },
});