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
+3 -4
View File
@@ -54,7 +54,7 @@ export const MediaTypeSpec = {
* Note on code coverage: Throughout this class, _buildBaseQueryNode and similar
* methods return null only when cameraIDs is empty. Public methods guard
* against empty cameraIDs before calling these internal methods, making the
* null branches unreachable. Istanbul ignore comments reference this note.
* null branches unreachable. Coverage ignore comments reference this note.
*/
export class UnifiedQueryBuilder {
private _cameraManager: CameraManager;
@@ -132,7 +132,7 @@ export class UnifiedQueryBuilder {
new UnifiedQuery(),
this._buildRecordingsQueryNode(cameraIDs, options),
);
/* istanbul ignore next: see class note on code coverage -- @preserve */
/* v8 ignore next: see class note on code coverage -- @preserve */
return query.hasNodes() ? query : null;
}
@@ -229,14 +229,13 @@ export class UnifiedQueryBuilder {
if (effectiveCameraIDs.size) {
for (const mediaType of effectiveMediaTypes) {
const node = this._buildFilterQueryNode(mediaType, effectiveCameraIDs, options);
/* istanbul ignore next: see class note on code coverage -- @preserve */
/* v8 ignore next: see class note on code coverage -- @preserve */
if (node) {
query.addNode(node);
}
}
}
/* istanbul ignore next: see class note on code coverage -- @preserve */
return query.hasNodes() ? query : null;
}
+1 -1
View File
@@ -108,7 +108,7 @@ export const getCameraIDsWithCapabilityForView = (
};
const capability = requirements.mediaCapabilities;
/* istanbul ignore next: this path is currently unreachable given the mapping
/* v8 ignore next: this path is currently unreachable given the mapping
in VIEW_REQUIREMENTS includes mediaCapabilities for all camera or 'any'
related views -- @preserve */
if (!capability) {