mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-03 17:38:51 +00:00
chore: standardised the eslint config structure accross the project (#11814)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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"],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user