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: condense gpuDetection windowsHide assertions and match test naming convention
Gabriel Stein5936260c29ef
diff --git a/test/utils/gpuDetection-windows-hide.test.js b/test/utils/gpuDetection-windows-hide.test.jsdeleted file mode 100644index a0d0c5cb3..000000000--- a/test/utils/gpuDetection-windows-hide.test.js+++ /dev/null@@ -1,20 +0,0 @@-const test = require("node:test");-const assert = require("node:assert/strict");-const fs = require("fs");-const path = require("path");--const SOURCE = fs.readFileSync(- path.join(__dirname, "../../src/utils/gpuDetection.js"),- "utf8"-);--test("nvidia-smi GPU probes pass windowsHide to avoid console flashes", () => {- const matches = SOURCE.match(/execFile\(\s*"nvidia-smi"/g) || [];- assert.equal(matches.length, 2, "expected detectNvidiaGpu and listNvidiaGpus probes");- assert.match(- SOURCE,- /execFile\(\s*"nvidia-smi"[\s\S]*?\{\s*timeout:\s*5000,\s*windowsHide:\s*true\s*\}/- );- const hideCount = (SOURCE.match(/windowsHide:\s*true/g) || []).length;- assert.equal(hideCount, 2, "both nvidia-smi execFile calls must set windowsHide");-});diff --git a/test/utils/gpuDetectionWindowsHide.test.js b/test/utils/gpuDetectionWindowsHide.test.jsnew file mode 100644index 000000000..1169bbbb0--- /dev/null+++ b/test/utils/gpuDetectionWindowsHide.test.js@@ -0,0 +1,10 @@+const test = require("node:test");+const assert = require("node:assert/strict");+const fs = require("fs");+const path = require("path");++test("nvidia-smi GPU probes set windowsHide", () => {+ const src = fs.readFileSync(path.join(__dirname, "../../src/utils/gpuDetection.js"), "utf8");+ const hidden = src.match(/execFile\(\s*"nvidia-smi"[^{}]*\{[^{}]*windowsHide: true/g) || [];+ assert.equal(hidden.length, 2);+});