I-2, M-4..M-8, M-11, M-13, M-16, M-18, T7.3, M-1..M-3, M-17. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
938 B
TypeScript
21 lines
938 B
TypeScript
import react from "@vitejs/plugin-react";
|
||
import { defineConfig } from "vitest/config";
|
||
|
||
// сервер разработки: приложение под /app/, маршруты API — прокси на хаб (по умолчанию тестовый :8791, R-5)
|
||
const hub = process.env.JIRA_HUB_URL ?? "http://127.0.0.1:8791"; // порт держать равным HUB_PORT в playwright.config.ts
|
||
const API = ["/board", "/issues", "/settings", "/agent", "/refresh", "/batches", "/commands", "/sync-runs"];
|
||
|
||
export default defineConfig({
|
||
base: "/app/",
|
||
plugins: [react()],
|
||
build: { outDir: "../src/jira_hub/web/app", emptyOutDir: true },
|
||
server: { host: "127.0.0.1", port: 5173, proxy: Object.fromEntries(API.map((p) => [p, { target: hub }])) },
|
||
test: {
|
||
environment: "jsdom",
|
||
setupFiles: ["./src/test/setup.ts"],
|
||
include: ["src/**/*.test.{ts,tsx}"],
|
||
restoreMocks: true,
|
||
unstubGlobals: true,
|
||
},
|
||
});
|