From 88162eda0724d323e1b56b645d44eb7c3e1c9568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 31 Jul 2026 20:34:29 +0200 Subject: [PATCH] Say whether each coverage case is an authored recipe or the default Two branches met here. One made `configured` a required field so a caller cannot stay silent and publish "not authored" for an account that chose its own composition. The other wrote these cases before that existed, so they compiled against the old shape and stopped compiling against the new one. Filling the field in to satisfy the compiler would have thrown away the point of making it required, so each case now states what it actually is: the two with a hand-picked selection are authored, and the one whose own comment says the account counts all eight is the default. --- .../__tests__/health-score-coverage-contract.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/insights/derived/__tests__/health-score-coverage-contract.test.ts b/src/lib/insights/derived/__tests__/health-score-coverage-contract.test.ts index 753ab0f48..b25492211 100644 --- a/src/lib/insights/derived/__tests__/health-score-coverage-contract.test.ts +++ b/src/lib/insights/derived/__tests__/health-score-coverage-contract.test.ts @@ -142,6 +142,8 @@ describe("Health Score coverage contract", () => { const composite = computeComposite({ pillars: allPillars(selection), availablePillars, + // An authored recipe: the person took four pillars out. + configured: true, asOf: NOW, }); @@ -175,6 +177,8 @@ describe("Health Score coverage contract", () => { const composite = computeComposite({ pillars: allPillars(selection), availablePillars: compositionFor(selection), + // An authored recipe. + configured: true, asOf: NOW, }); @@ -193,6 +197,8 @@ describe("Health Score coverage contract", () => { const composite = computeComposite({ pillars: allPillars(withData), availablePillars: compositionFor(SCORE_PILLAR_IDS), + // The full catalogue is this account's default, not a choice. + configured: false, asOf: NOW, });