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: run real buildJiraTicketTask in cos route test after extraction (#2533)
Adam Eivy5c19e3d028c7
diff --git a/server/routes/cos.test.js b/server/routes/cos.test.jsindex de25ca979c..24ca1bfa81 100644--- a/server/routes/cos.test.js+++ b/server/routes/cos.test.js@@ -85,7 +85,12 @@ vi.mock('../services/subAgentSpawner.js', () => ({// The `/do:next` slashdo route resolves the app's Work Tracker via// buildClaimWorkTask + getAppById instead of inlining the raw command body.-vi.mock('../services/cosTaskGenerator.js', () => ({+// buildClaimWorkTask is stubbed (the slashdo tests drive it directly), but the+// real buildJiraTicketTask runs so the `/tasks/jira-ticket` route still exercises+// the extracted prompt assembly — it resolves getTaskPrompt/getCodeReviewDefaults,+// which are mocked below, so the route-level assertions stay verbatim.+vi.mock('../services/cosTaskGenerator.js', async (importActual) => ({+ ...(await importActual()),buildClaimWorkTask: vi.fn()}));vi.mock('../services/apps.js', () => ({