feat(interviews): add durable debrief loop
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user