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

fix: isolate editorial trend writes in tests

[._.]/ Adam Eivy605ea36de212
diff --git a/server/services/pipeline/editorial/checkRunner.test.js b/server/services/pipeline/editorial/checkRunner.test.js
index b962406dfa..0ab0cf9a33 100644
--- a/server/services/pipeline/editorial/checkRunner.test.js
+++ b/server/services/pipeline/editorial/checkRunner.test.js
@@ -86,6 +86,9 @@ vi.mock('../manuscriptReview.js', () => ({
seedReviewFromFindings: (...a) => seedReviewFromFindings(...a),
getReview: async () => reviewState,
}));
+// A trend snapshot is telemetry owned by editorialScore's own tests; keep this
+// suite's behavioral checks isolated from the install's on-disk data tree.
+vi.mock('../editorialScore.js', () => ({ recordTrendSnapshot: vi.fn().mockResolvedValue({}) }));
// Reverse-outline source (#1296) — backed by a mutable fixture; default empty so
// the scene.component-balance check is gated off unless a test populates scenes.
let outlineState = { scenes: [] };