ignore: fix acp test (#3339)

This commit is contained in:
Aiden Cline
2025-10-21 15:27:59 -05:00
committed by GitHub
parent 833706cda4
commit 354f5c3281

View File

@@ -3,7 +3,7 @@ import { spawn } from "child_process"
describe("ACP Server", () => {
test("initialize and shutdown", async () => {
const proc = spawn("bun", ["run", "--conditions=development", "src/index.ts", "acp"], {
const proc = spawn("bun", ["run", "dev", "acp"], {
cwd: process.cwd(),
stdio: ["pipe", "pipe", "pipe"],
env: { ...process.env, OPENCODE: "1" },
@@ -27,6 +27,9 @@ describe("ACP Server", () => {
}
})
// Wait for server to be ready
await new Promise((resolve) => setTimeout(resolve, 500))
proc.stdin.write(
encoder.encode(
JSON.stringify({
@@ -48,7 +51,7 @@ describe("ACP Server", () => {
}, 10000)
test("create session", async () => {
const proc = spawn("bun", ["run", "--conditions=development", "src/index.ts", "acp"], {
const proc = spawn("bun", ["run", "dev", "acp"], {
cwd: process.cwd(),
stdio: ["pipe", "pipe", "pipe"],
env: { ...process.env, OPENCODE: "1" },