chore: Switch coverage from istanbul to the v8 provider for speed (#2619)

This commit is contained in:
Dermot Duffy
2026-07-26 14:21:27 -07:00
committed by GitHub
parent 3b8835ee7c
commit ababe133a8
32 changed files with 128 additions and 275 deletions
@@ -10,7 +10,7 @@ export class MJPEGStreamSource extends ImageFrameStreamSource {
}
protected _handleFrame(data: ArrayBuffer): void {
/* istanbul ignore next: This never rejects; the catch satisfies the no-floating-promises -- @preserve */
/* v8 ignore next: This never rejects; the catch satisfies the no-floating-promises -- @preserve */
this._showFrame(new Blob([data], { type: 'image/jpeg' })).catch(() => {});
}
}
@@ -90,7 +90,7 @@ export class MP4StreamSource extends ImageFrameStreamSource {
context.drawImage(decoder, 0, 0, canvas.width, canvas.height);
canvas.toBlob((frame) => {
if (frame) {
/* istanbul ignore next: This never rejects; the catch satisfies the no-floating-promises -- @preserve */
/* v8 ignore next: This never rejects; the catch satisfies the no-floating-promises -- @preserve */
this._showFrame(frame).catch(() => {});
}
}, 'image/jpeg');