@@ -1,5 +1,6 @@
|
||||
import { afterEach, expect, test } from "bun:test";
|
||||
import { chmod, mkdir, mkdtemp, rm, symlink, writeFile } from "node:fs/promises";
|
||||
import { tmpdir } from "node:os";
|
||||
import { join } from "node:path";
|
||||
import { Agent, Model, Plugin, Provider } from "@opencode/plugin";
|
||||
import type { AgentEditor } from "@opencode/plugin/promise/agent";
|
||||
@@ -418,9 +419,9 @@ test("coordinator inherits only codegraph MCP permissions when that server exist
|
||||
|
||||
test("playwright MCP prefers direct MCP, uses npx for Playwright, and preserves fallback behavior", async () => {
|
||||
const originalPath = process.env.PATH;
|
||||
process.env.PATH = "";
|
||||
const root = await mkdtemp("/tmp/opencode/stanp-playwright-");
|
||||
const root = await mkdtemp(join(tmpdir(), "stanp-playwright-"));
|
||||
try {
|
||||
process.env.PATH = "";
|
||||
const packageRoot = join(root, "local", "node_modules", "@playwright", "mcp");
|
||||
const executable = join(packageRoot, "cli.js");
|
||||
const localProject = join(root, "local", "project");
|
||||
|
||||
Reference in New Issue
Block a user