Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
test(notes): skip the legacy-rebuild test cleanly on ABI-mismatched runtimes
Gabriel Stein802821e56060
diff --git a/test/helpers/spacesDatabase.test.js b/test/helpers/spacesDatabase.test.jsindex 9037f3bb3..70c9693a6 100644--- a/test/helpers/spacesDatabase.test.js+++ b/test/helpers/spacesDatabase.test.js@@ -743,9 +743,10 @@ test("getFolderNoteCounts attributes space-root notes per space", (t) => {test("folders rebuild succeeds on a legacy DB with notes referencing folders", (t) => {userDataDir = fs.mkdtempSync(path.join(os.tmpdir(), "openwhispr-spaces-db-"));- let BetterSqlite;+ let legacy;try {- BetterSqlite = require("better-sqlite3");+ const BetterSqlite = require("better-sqlite3");+ legacy = new BetterSqlite(path.join(userDataDir, "transcriptions.db"));} catch (error) {if (isNativeBindingUnavailable(error)) {t.skip("better-sqlite3 native binding is not available for this Node runtime");@@ -757,7 +758,6 @@ test("folders rebuild succeeds on a legacy DB with notes referencing folders", (// Pre-migration shape: folders still carries the table-level UNIQUE(name)// and notes rows reference them. better-sqlite3 enables foreign_keys by// default, so the rebuild's DROP TABLE used to throw on exactly this DB.- const legacy = new BetterSqlite(path.join(userDataDir, "transcriptions.db"));legacy.exec(`CREATE TABLE folders (id INTEGER PRIMARY KEY AUTOINCREMENT,