Files
MikrotikManager/playwright.mcp.config.ts
T

10 lines
637 B
TypeScript

import { defineConfig } from "@playwright/test"
import base from "./playwright.config"
const server = base.webServer
if (!server || Array.isArray(server)) throw new Error("Ожидается один локальный сервер")
export default defineConfig({
...base, testIgnore: [], testMatch: "mcp-context.spec.ts",
use: { ...base.use, baseURL: "http://127.0.0.1:3102" },
webServer: { ...server, command: "node node_modules/next/dist/bin/next dev --webpack --hostname 127.0.0.1 --port 3102", url: "http://127.0.0.1:3102", env: { ...server.env, NEXT_PUBLIC_BACKEND_URL: "local", MM_NEXT_DIST_DIR: "tmp/next-mcp-test" } },
})