mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
chore: add vitest config for component testing
This commit is contained in:
@@ -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"),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user