25 lines
610 B
JavaScript
25 lines
610 B
JavaScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
host: true,
|
|
port: 5173,
|
|
strictPort: true,
|
|
proxy: { "/api": "http://127.0.0.1:8082" },
|
|
},
|
|
test: {
|
|
environment: "jsdom",
|
|
pool: "threads",
|
|
maxWorkers: 1,
|
|
isolate: false, // ponytail: one worker avoids 90s startup stalls; restore isolation if tests leak state.
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text"],
|
|
thresholds: { lines: 65 },
|
|
},
|
|
},
|
|
});
|