Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

test(models): stub the disk check in the concurrent-download test (#2804)

Chad Piha6f9b55185bff
diff --git a/test/helpers/modelManagerBridgeDownloadStatus.test.js b/test/helpers/modelManagerBridgeDownloadStatus.test.js
index cc8a4c6c1..fda9eee92 100644
--- a/test/helpers/modelManagerBridgeDownloadStatus.test.js
+++ b/test/helpers/modelManagerBridgeDownloadStatus.test.js
@@ -313,6 +313,7 @@ test("downloadModel permits distinct local models to download concurrently", asy
continueDownloads = resolve;
});
const modelManager = loadModelManager({
+ checkDiskSpace: async () => ({ ok: true, availableBytes: Infinity }),
downloadFile: async (_url, destination, options) => {
started.push(destination);
options.onProgress?.(1, 2);