Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

test(web): stabilize Windows CI

Guse1d0297b1ade
diff --git a/src/web/scripts/preflight-bug-reports.test.ts b/src/web/scripts/preflight-bug-reports.test.ts
index 04819d0cd..754234cdf 100644
--- a/src/web/scripts/preflight-bug-reports.test.ts
+++ b/src/web/scripts/preflight-bug-reports.test.ts
@@ -67,7 +67,8 @@ describe("B2d read-only bug-report R2 preflight", () => {
it("runs the package CLI fail-closed without credentials", () => {
const packageRoot = fileURLToPath(new URL("..", import.meta.url));
const secretMarker = "PREFLIGHT_SECRET_MUST_NOT_LEAK";
- const child = spawnSync("pnpm", ["preflight:bug-reports"], {
+ const pnpmExecutable = process.platform === "win32" ? "pnpm.cmd" : "pnpm";
+ const child = spawnSync(pnpmExecutable, ["preflight:bug-reports"], {
cwd: packageRoot,
encoding: "utf8",
env: {
diff --git a/src/web/src/hooks/community/mutations/messages.test.ts b/src/web/src/hooks/community/mutations/messages.test.ts
index 8929cf612..d782da414 100644
--- a/src/web/src/hooks/community/mutations/messages.test.ts
+++ b/src/web/src/hooks/community/mutations/messages.test.ts
@@ -175,7 +175,7 @@ describe("useEditMessage", () => {
const cache = capturedQc.getQueryData<{ pages: { messages: { content?: string }[] }[] }>(key)
expect(cache?.pages[0].messages[0]?.content).toBe("old")
expect(capturedQc.getQueryData<{ content: string }>(messageKey)?.content).toBe("old")
- })
+ }, 60_000)
it("optimistically patches the single-message cache used by a post header", async () => {
const messageKey = communityKeys.message("opener_1")