test: clarify inspector coverage limitations

This commit is contained in:
morluto committed 2026-11-08 00:06:55 +08:00
1 parent 872890bef3
commit 5cafea5ebe
2 files changed
+14 -7

No files matched your search

@@ -148,7 +148,9 @@ it("stops Inspector target authorization after the current stat settles", async
complete: false,
targets_examined: 1,
limitations: expect.arrayContaining([
"Cancellation stopped target authorization; unexamined targets are unknown, not excluded.",
expect.stringMatching(
/cancellation.*authorization.*unexamined targets.*unknown.*not excluded/iu,
),
]),
},
});
@@ -185,8 +187,9 @@ it("stops Electron target authorization after the current stat settles", async (
expect(result.error.cause).toBe(reason);
expect(result.error.diagnostics).toMatchObject({
completed_prefix: {
coverage:
"partial: target authorization stopped; remaining targets are unknown",
coverage: expect.stringMatching(
/partial.*authorization stopped.*targets are unknown/iu,
),
},
});
const prefix = record(record(result.error.diagnostics)?.completed_prefix);