diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..d9fb834 --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,18 @@ +import { defineConfig } from "vitest/config"; +import react from "@vitejs/plugin-react"; + +export default defineConfig({ + plugins: [react()], + test: { + include: ["tests/unit/**/*.{test,spec}.{ts,tsx}"], + environment: "jsdom", + setupFiles: ["./tests/unit/setup.ts"], + globals: true, + css: true, + }, + resolve: { + alias: { + "@": "/srv/CoaxysPanel/src", + }, + }, +});