feat(interviews): add durable debrief loop

This commit is contained in:
cesnimda
2026-08-31 17:20:58 +02:00
parent c2181afaea
commit 7d5a78ad5d
8 changed files with 60 additions and 3 deletions
+3 -1
View File
@@ -52,13 +52,15 @@ public sealed class InterviewPrepTests
await prep.AddAsync("user-1", job.Id, new InterviewPrepInput(InterviewPrepCategories.Question, "What does success look like?", null, null, null), default);
await prep.AddAsync("user-1", job.Id, new InterviewPrepInput(InterviewPrepCategories.CompanyResearch, "Funding history", "Series B in 2025.", null, null), default);
await prep.AddAsync("user-1", job.Id, new InterviewPrepInput(InterviewPrepCategories.Technical, "System design", null, null, null), default);
await prep.AddAsync("user-1", job.Id, new InterviewPrepInput(InterviewPrepCategories.Debrief, "Interview debrief", "Questions asked", null, null), default);
var result = await prep.GetAsync("user-1", job.Id, default);
Assert.Equal(
new[] { InterviewPrepCategories.CompanyResearch, InterviewPrepCategories.Technical, InterviewPrepCategories.Question },
new[] { InterviewPrepCategories.CompanyResearch, InterviewPrepCategories.Technical, InterviewPrepCategories.Question, InterviewPrepCategories.Debrief },
result!.Groups.Select(g => g.Category));
Assert.Equal("Company research", result.Groups[0].Label);
Assert.Equal("Interview debrief", result.Groups[^1].Label);
}
[Fact]