Skip to content

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

test: stub generatePipelineManuscriptFix in the api mock so the barrel mock is complete (#1598)

[._.]/ Adam Eivyddfcaf4a3e3a
diff --git a/client/src/components/pipeline/editorial/EditorialFindingsTriage.test.jsx b/client/src/components/pipeline/editorial/EditorialFindingsTriage.test.jsx
index 1d3dee3677..af072c4339 100644
--- a/client/src/components/pipeline/editorial/EditorialFindingsTriage.test.jsx
+++ b/client/src/components/pipeline/editorial/EditorialFindingsTriage.test.jsx
@@ -5,9 +5,14 @@ import EditorialFindingsTriage from './EditorialFindingsTriage';
import { findingManuscriptLink } from '../../../lib/editorialChecks';
import { acceptPipelineManuscriptFix, patchPipelineManuscriptComment } from '../../../services/api';
+// Mock the whole api barrel — include every export the component tree touches.
+// EditorialFindingsTriage transitively imports ManuscriptCommentCard, which also
+// pulls in generatePipelineManuscriptFix; stub it too so the mock stays a
+// complete stand-in for the barrel rather than dropping that named export.
vi.mock('../../../services/api', () => ({
acceptPipelineManuscriptFix: vi.fn(),
patchPipelineManuscriptComment: vi.fn(),
+ generatePipelineManuscriptFix: vi.fn(),
}));
const checksById = {