mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
22 lines
595 B
TypeScript
22 lines
595 B
TypeScript
import { fileURLToPath } from "url";
|
|
import react from "@vitejs/plugin-react";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
plugins: [tsconfigPaths(), react()],
|
|
resolve: {
|
|
alias: {
|
|
"server-only": fileURLToPath(
|
|
new URL("./test-mocks/server-only.ts", import.meta.url),
|
|
),
|
|
},
|
|
},
|
|
test: {
|
|
include: ["src/**/*.test.ts", "src/**/*.test.tsx", "tests/**/*.test.ts"],
|
|
exclude: ["**/*.integration.test.ts"],
|
|
environment: "jsdom",
|
|
setupFiles: ["./test-setup.ts"],
|
|
},
|
|
});
|