fix(browser): preserve source-map cancellation results

This commit is contained in:
morluto
2026-10-14 01:56:05 +08:00
parent a742936108
commit bfcc9526a3
3 changed files with 102 additions and 1 deletions
@@ -73,7 +73,13 @@ it("releases cleanup when cancellation arrives after capture completes", async (
});
controller.abort();
const result = await pending;
expect(result.ok).toBe(true);
expect(result).toMatchObject({
ok: false,
error: {
_tag: "AnalysisCancelledError",
operation: "observe_web_session",
},
});
expect(browser.commands.map(({ method }) => method)).toContain(
"Target.detachFromTarget",
);