fix(browser): preserve source-map cancellation results
This commit is contained in:
@@ -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",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user