Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

test(ai): require all three tool ends in the parallel-writes test

EtienneLescot2ba10a8b8b77
diff --git a/electron/ai-edition/deep-agent/service.test.ts b/electron/ai-edition/deep-agent/service.test.ts
index 688ddc3ce..0a368e95b 100644
--- a/electron/ai-edition/deep-agent/service.test.ts
+++ b/electron/ai-edition/deep-agent/service.test.ts
@@ -388,7 +388,7 @@ describe("the sink announces each call exactly once, with the real verdict", ()
trim.invoke({ startSec: 20, endSec: 21 }),
]);
- expect(events.filter((e) => e.kind === "toolEnd").every((e) => e.ok)).toBe(true);
+ expect(events.filter((e) => e.kind === "toolEnd").map((e) => e.ok)).toEqual([true, true, true]);
expect(holder.current.zoomRanges).toHaveLength(1);
expect(holder.current.timeline.trimRanges).toHaveLength(3);
});