test(agent): typed abort-signal listener without DOM lib

This commit is contained in:
can1357
2026-08-16 02:19:32 +02:00
parent db056bd8cb
commit 3e64a24714
@@ -241,7 +241,7 @@ describe("branch summarization", () => {
get reason() {
return aborted ? reason : undefined;
},
addEventListener(type: string, listener: EventListenerOrEventListenerObject) {
addEventListener(type: string, listener: ((event: Event) => void) | { handleEvent(event: Event): void }) {
if (type !== "abort") return;
aborted = true;
const event = new Event("abort");