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
+4 -5
View File
@@ -39,7 +39,7 @@ export class ViewItemManager {
try {
await this._download(item);
} catch (error: unknown) {
/* istanbul ignore if: catch always provides a non-null error -- @preserve */
/* v8 ignore if: catch always provides a non-null error -- @preserve */
if (error == null) {
return false;
}
@@ -58,7 +58,7 @@ export class ViewItemManager {
if (source === ViewMediaSource.Camera && ViewItemClassifier.isMedia(item)) {
return await this._api.getCameraManager().favoriteMedia(item, favorite);
}
/* istanbul ignore else: this path cannot be reached -- @preserve */
/* v8 ignore else: this path cannot be reached -- @preserve */
if (source === ViewMediaSource.Folder) {
return this._api.getFoldersManager().favorite(item, favorite);
}
@@ -78,7 +78,6 @@ export class ViewItemManager {
return ViewMediaSource.Folder;
}
/* istanbul ignore next: this path cannot be reached -- @preserve */
return null;
}
@@ -133,12 +132,12 @@ export class ViewItemManager {
);
}
/* istanbul ignore else: this path cannot be reached -- @preserve */
/* v8 ignore else: this path cannot be reached -- @preserve */
if (ViewItemClassifier.isFolder(item)) {
return toFilename(item.getTitle() ?? 'media');
}
/* istanbul ignore next: this path cannot be reached -- @preserve */
/* v8 ignore next: this path cannot be reached -- @preserve */
return 'download';
}
}
+1 -1
View File
@@ -293,7 +293,7 @@ export class ViewManager implements ViewManagerInterface {
return;
}
/* istanbul ignore if: the if path cannot be reached as the view is set
/* v8 ignore if: the if path cannot be reached as the view is set
above -- @preserve */
if (!this._view) {
return;
@@ -227,7 +227,7 @@ export class ViewQueryExecutor {
const now = new Date();
const liveConfig = this._api.getConfigManager().getConfig()?.live;
/* istanbul ignore if: this if branch cannot be reached as if the config is
/* v8 ignore if: this if branch cannot be reached as if the config is
empty this function is never called -- @preserve */
if (!liveConfig) {
return [];