Files
lvmh/web/vite.config.ts
T

39 lines
773 B
TypeScript

/// <reference types="vitest/config" />
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const DEV_PROXY_TARGET: string = "http://localhost:8686";
export default defineConfig({
plugins: [react()],
build: {
outDir: "dist",
},
server: {
proxy: {
"/api": DEV_PROXY_TARGET,
"/ws": { target: DEV_PROXY_TARGET, ws: true },
},
},
test: {
environment: "jsdom",
globals: true,
setupFiles: ["./src/test/setup.ts"],
css: false,
pool: "forks",
fileParallelism: false,
coverage: {
provider: "v8",
include: ["src/**/*.{ts,tsx}"],
exclude: ["src/**/*.test.*", "src/test/**"],
reporter: ["text", "html"],
thresholds: {
lines: 95,
branches: 95,
functions: 95,
statements: 95,
},
},
},
});