Skip to content

Commit 651d618

Browse files
PR Batch Testerclaude
andcommitted
test(desktop): reattach test detaches and attaches again
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent e3992ab commit 651d618

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎apps/desktop/src/preview/DesktopBrowserHost.test.ts‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,16 @@ describe("DesktopBrowserHost", () => {
7777
it.effect("re-sends shown when a shown tab attaches again", () =>
7878
Effect.gen(function* () {
7979
const host = yield* DesktopBrowserHost.make;
80+
host.attach(key, makeDebuggee().tab);
8081
host.setShown(key, true);
81-
const reader = yield* takeEvents(host, 3).pipe(Effect.forkScoped);
82+
const reader = yield* takeEvents(host, 5).pipe(Effect.forkScoped);
8283

8384
yield* Effect.yieldNow;
85+
host.detach(key);
8486
host.attach(key, makeDebuggee().tab);
8587

86-
expect(yield* Fiber.join(reader)).toEqual([
87-
{ type: "shown", ...key, shown: true },
88+
expect((yield* Fiber.join(reader)).slice(2)).toEqual([
89+
{ type: "detached", ...key },
8890
{ type: "attached", ...key },
8991
{ type: "shown", ...key, shown: true },
9092
]);

0 commit comments

Comments
 (0)