@teamscala/service-boot 0.23.477 → 0.23.478

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "@teamscala/service-boot",
8
8
  "type": "module",
9
- "version": "0.23.477",
9
+ "version": "0.23.478",
10
10
  "sideEffects": false,
11
11
  "imports": {
12
12
  "#service-boot/*": "./src/*",
@@ -14,6 +14,7 @@ import {
14
14
  type ReportAssessmentInput,
15
15
  type StageBand,
16
16
  } from "./assessment-report-data.ts";
17
+ import { assessmentResearchFindingsSchema } from "@teamscala/db-validation/generated/assessment-research-findings";
17
18
 
18
19
  const ANNA_LINKEDIN_RAW = "https://www.linkedin.com/in/annaosherov/";
19
20
  const ANNA_KEY = "linkedin.com/in/annaosherov";
@@ -173,7 +174,17 @@ describe("research shaping", () => {
173
174
  ).toThrow(/superseded/);
174
175
  });
175
176
 
176
- test("malformed authored findings throw instead of silently rendering garbage", () => {
177
+ // The db-validation generated schema is the contract this parse enforces.
178
+ // While the generated artifact is still the permissive v.record fallback
179
+ // (the codegen engine that emits the faithful schema embeds
180
+ // STRUCTURED_JSONB_KEYS at its build and needs an engine rebuild with
181
+ // @teamscala/codegen >= 2.1.585 — then `scala-tools codegen run --output
182
+ // db-column-validation --force`, publish db-validation, bump here), this
183
+ // test activates itself: the skip is a property of the shipped artifact,
184
+ // not of the expectation.
185
+ const schemaIsFaithful = !("key" in (assessmentResearchFindingsSchema as object));
186
+ const enforceTest = schemaIsFaithful ? test : test.skip;
187
+ enforceTest("malformed authored findings throw instead of silently rendering garbage", () => {
177
188
  expect(() => readResearchFindings({ groups: "not-an-array" })).toThrow();
178
189
  });
179
190
  });