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: refresh the fileUtils mock note now that tryReadFile is stubbed too (#3874)
[._.]/ Adam Eivyb157f96a5b71
diff --git a/server/lib/tuiPromptRunner.test.js b/server/lib/tuiPromptRunner.test.jsindex 8cde61b829..3742829c7a 100644--- a/server/lib/tuiPromptRunner.test.js+++ b/server/lib/tuiPromptRunner.test.js@@ -10,8 +10,9 @@ const TEST_WORKSPACE = process.cwd();// node-pty + runner hooks are mocked so executeTuiRun can be driven// synchronously from the test without spawning a real terminal. fileUtils-// stays real for everything except `ensureDir` (which would otherwise create-// real run directories the SUT never needs in these tests). Mocks live+// stays real except for `ensureDir` (which would otherwise create real run+// directories the SUT never needs in these tests) and `tryReadFile` (which+// serves seeded response files from memory — see below). Mocks live// inside vi.hoisted so the vi.mock factories (which are themselves hoisted// to the top of the file) can reference them.const { ptyInstances, ptySpawnMock, runnerMocks, shellMocks, runsTmpDirRef, responseFiles } = vi.hoisted(() => ({