fix(assessment): return confirmed categories with their basis and label demonstration categories

This commit is contained in:
shira committed 2026-10-09 21:24:24 +03:00
1 parent 623d41b969
commit d4903a3796
77 files changed
+1441 -288

No files matched your search

@@ -24,7 +24,14 @@ describe("candidate card presentation", () => {
const result = presentCandidatePreview(
preview({
pseudonym: `cv1_${"a".repeat(43)}`,
categories: [{ specialization: "backend", grade: "junior", strength: "standard" }],
categories: [
{
specialization: "backend",
grade: "junior",
strength: "standard",
basis: "synthetic_demo",
},
],
stack: ["go"],
self_assessment: [
{
@@ -43,7 +50,7 @@ describe("candidate card presentation", () => {
{
specialization: "Backend",
grade: "Junior",
strength: "Стандартное подтверждение",
strength: "Демонстрационное подтверждение",
},
]);
expect(result?.selfAssessments).toEqual([
@@ -60,7 +67,14 @@ describe("candidate card presentation", () => {
const result = presentCandidatePreview(
preview({
pseudonym: `cv1_${"b".repeat(43)}`,
categories: [{ specialization: "backend", grade: "middle", strength: "strong" }],
categories: [
{
specialization: "backend",
grade: "middle",
strength: "strong",
basis: "synthetic_demo",
},
],
stack: null,
self_assessment: [
{ specialization: "backend", confirmation_status: "confirmed", declared_grade: "middle" },
@@ -95,7 +109,14 @@ describe("candidate card presentation", () => {
const result = presentCandidatePreview({
...preview({
pseudonym: `cv1_${"c".repeat(43)}`,
categories: [{ specialization: "backend", grade: "middle", strength: "standard" }],
categories: [
{
specialization: "backend",
grade: "middle",
strength: "standard",
basis: "synthetic_demo",
},
],
stack: null,
self_assessment: null,
experience_band: null,