feat(evidence): project skill evidence from confirmed assessments
This commit is contained in:
1 parent
4761508f13
commit
c2a8d17195
94 files changed
+10077
-151
No files matched your search
@@ -260,14 +260,33 @@ describe("generated AnonymousCardContent", () => {
|
||||
state: "closed",
|
||||
fields: [],
|
||||
card: null,
|
||||
evidence: null,
|
||||
generated_at: "2026-10-06T09:30:00Z",
|
||||
};
|
||||
|
||||
expect(CardPreview.parse(closed)).toEqual(closed);
|
||||
expect(
|
||||
CardPreview.parse({ ...closed, state: "published", fields: ["stack"], card }),
|
||||
CardPreview.parse({
|
||||
...closed,
|
||||
state: "published",
|
||||
fields: ["stack"],
|
||||
card,
|
||||
evidence: {
|
||||
items: [
|
||||
{
|
||||
skill: "backend",
|
||||
grade: "junior",
|
||||
trust: 1,
|
||||
basis: "synthetic_demo",
|
||||
calibration_status: "uncalibrated",
|
||||
observed_year: 2026,
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
).toMatchObject({
|
||||
card: { stack: ["postgresql", "kafka"] },
|
||||
evidence: { items: [{ skill: "backend", trust: 1 }] },
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user