Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test(client): run playback helpers without jsdom (#4500)
[._.]/ Adam Eivycb1f87823b52
diff --git a/client/src/components/songs/ScoreSheet.test.jsx b/client/src/components/songs/ScoreSheet.test.jsxindex d6fa57a966..b549da88ee 100644--- a/client/src/components/songs/ScoreSheet.test.jsx+++ b/client/src/components/songs/ScoreSheet.test.jsx@@ -1,3 +1,5 @@+// @vitest-environment node+import { describe, it, expect } from 'vitest';import { renderToStaticMarkup } from 'react-dom/server';import ScoreSheet from './ScoreSheet.jsx';diff --git a/client/src/lib/chiptunePlayback.test.js b/client/src/lib/chiptunePlayback.test.jsindex e886686b08..8fb3289feb 100644--- a/client/src/lib/chiptunePlayback.test.js+++ b/client/src/lib/chiptunePlayback.test.js@@ -1,3 +1,5 @@+// @vitest-environment node+// Schedule + audio-session tests for the chiptune preview (#2911). Most of this// file exercises the Web-Audio-free exports (buildChiptuneSchedule /// parseChiptunePitch); the timing semantics there MUST agree withdiff --git a/client/src/lib/clipboard.test.js b/client/src/lib/clipboard.test.jsindex 149d2995c4..807dd8073b 100644--- a/client/src/lib/clipboard.test.js+++ b/client/src/lib/clipboard.test.js@@ -1,3 +1,5 @@+// @vitest-environment node+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';const toastMock = { success: vi.fn(), error: vi.fn() };diff --git a/client/src/lib/drumPlayer.test.js b/client/src/lib/drumPlayer.test.jsindex 3a35cc49f2..beac80aec3 100644--- a/client/src/lib/drumPlayer.test.js+++ b/client/src/lib/drumPlayer.test.js@@ -1,3 +1,5 @@+// @vitest-environment node+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';import { parseDrumChart } from './drumNotation.js';import { createDrumPlayer } from './drumPlayback.js';diff --git a/client/src/lib/scorePlayback.race.test.js b/client/src/lib/scorePlayback.race.test.jsindex b99cc19c99..956186e1b7 100644--- a/client/src/lib/scorePlayback.race.test.js+++ b/client/src/lib/scorePlayback.race.test.js@@ -1,3 +1,5 @@+// @vitest-environment node+// Resume-window race guard for the score players. Lives in its own file because// the module memoizes one shared AudioContext on first use — a fresh module// registry (per Vitest file) lets the first play() create a *suspended* contextdiff --git a/client/src/pages/Login.test.jsx b/client/src/pages/Login.test.jsxindex 7dd56cc64c..a77bb1d0b8 100644--- a/client/src/pages/Login.test.jsx+++ b/client/src/pages/Login.test.jsx@@ -1,3 +1,5 @@+// @vitest-environment node+import { describe, it, expect } from 'vitest';import { sanitizeNext } from './Login';diff --git a/client/src/pages/RunsHistoryPage.test.jsx b/client/src/pages/RunsHistoryPage.test.jsxindex efe6e4d97d..ae89199db7 100644--- a/client/src/pages/RunsHistoryPage.test.jsx+++ b/client/src/pages/RunsHistoryPage.test.jsx@@ -1,3 +1,5 @@+// @vitest-environment node+import { describe, it, expect, vi } from 'vitest';// RunsHistoryPage pulls in the API barrel transitively; stub it so importing the