Files
aurak/server/test-output.txt
T
Developer 1224a74e63 fix: natural follow-up conversation flow
- Grader: separate followup hint from scoring feedback
- Interviewer: use followup hint directly without prefix/suffix
- Restored standard and choice question presentation paths
2026-05-21 11:53:24 +08:00

227 lines
16 KiB
Plaintext

 console.log
[InterviewerNode] Entering node... {
numQuestions: 0,
currentIndex: 0,
shouldFollowUp: false,
numMessages: undefined
}
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:14:11)
console.log
[InterviewerNode] Entering node... {
numQuestions: undefined,
currentIndex: 0,
shouldFollowUp: false,
numMessages: undefined
}
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:14:11)
console.log
[InterviewerNode] Entering node... {
numQuestions: 0,
currentIndex: 0,
shouldFollowUp: false,
numMessages: undefined
}
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:14:11)
console.log
[InterviewerNode] Entering node... {
numQuestions: 0,
currentIndex: 0,
shouldFollowUp: false,
numMessages: undefined
}
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:14:11)
console.log
[InterviewerNode] Entering node... {
numQuestions: 1,
currentIndex: 5,
shouldFollowUp: false,
numMessages: undefined
}
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:14:11)
console.log
[InterviewerNode] Entering node... {
numQuestions: 1,
currentIndex: 0,
shouldFollowUp: false,
numMessages: undefined
}
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:14:11)
console.log
[InterviewerNode] Returning question: { currentQuestionIndex: 0, questionText: 'What is JS?' }
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:55:11)
console.log
[InterviewerNode] Entering node... {
numQuestions: 1,
currentIndex: 0,
shouldFollowUp: false,
numMessages: undefined
}
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:14:11)
console.log
[InterviewerNode] Returning question: { currentQuestionIndex: 0, questionText: 'What is JS?' }
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:55:11)
console.log
[InterviewerNode] Entering node... {
numQuestions: 1,
currentIndex: 0,
shouldFollowUp: false,
numMessages: undefined
}
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:14:11)
console.log
[InterviewerNode] Returning question: { currentQuestionIndex: 0, questionText: 'What is JS?' }
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:55:11)
console.log
[InterviewerNode] Entering node... {
numQuestions: 1,
currentIndex: 0,
shouldFollowUp: false,
numMessages: undefined
}
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:14:11)
console.log
[InterviewerNode] Returning question: { currentQuestionIndex: 0, questionText: 'What is JS?' }
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:55:11)
console.log
[InterviewerNode] Entering node... {
numQuestions: 1,
currentIndex: 0,
shouldFollowUp: true,
numMessages: undefined
}
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:14:11)
console.log
[InterviewerNode] Returning question: { currentQuestionIndex: 0, questionText: 'What is JS?' }
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:55:11)
console.log
[InterviewerNode] Entering node... {
numQuestions: 1,
currentIndex: 0,
shouldFollowUp: true,
numMessages: undefined
}
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:14:11)
console.log
[InterviewerNode] Returning question: { currentQuestionIndex: 0, questionText: 'What is JS?' }
at interviewerNode (assessment/graph/nodes/interviewer.node.ts:55:11)
node.exe : FAIL src/assessment/graph/nodes/interviewer.node.spec.ts (10.033 s)
所在位置 行:1 字符: 1
+ & "C:\Program Files\nodejs/node.exe" "C:\Program Files\nodejs/node_mo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (FAIL src/assess...c.ts (10.033 s):String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
鈼?interviewerNode 鈥?standard question presentation 鈥?should present the current question
expect(received).toContain(expected) // indexOf
Expected substring: "Question 1"
Received string: ""
  54 | expect(result.messages).toBeDefined();
 55 | const msg = (result.messages as any)[0][3
3m.content as string;
> 56 | expect(msg).toContain('Question 1');
 | ^
 57 | expect(msg).toContain('What is JS?');
 58 | });
 59 |
at Object.<anonymous> (assessment/graph/nodes/interviewer.node.spec.ts:56:19)
鈼?interviewerNode 鈥?standard question presentation 鈥?should include answer instruction
expect(received).toContain(expected) // indexOf
Expected substring: "answer"
Received string: ""
  61 | const result = await interviewerNode(baseState());[3
9m
 62 | const msg = (result.messages as any)[0][3
3m.content as string;
> 63 | expect(msg).toContain('answer');
 | ^
 64 | });
 65 |
 66 | it('should use Chinese labels when language is zh', async () [3
3m=> {
at Object.<anonymous> (assessment/graph/nodes/interviewer.node.spec.ts:63:19)
鈼?interviewerNode 鈥?standard question presentation 鈥?should use Chinese labels when language is zh
expect(received).toContain(expected) // indexOf
Expected substring: "闂"
Received string: ""
  68 | const result = await interviewerNode(state);
 69 | const msg = (result.messages as any)[0][3
3m.content as string;
> 70 | expect(msg).toContain('闂');
 | ^
 71 | expect(msg).toContain('鍥炵瓟');
 72 | });
 73 |
at Object.<anonymous> (assessment/graph/nodes/interviewer.node.spec.ts:70:19)
鈼?interviewerNode 鈥?standard question presentation 鈥?should use Japanese labels when language is ja
expect(received).toContain(expected) // indexOf
Expected substring: "璩晱"
Received string: ""
  76 | const result = await interviewerNode(state);
 77 | const msg = (result.messages as any)[0][3
3m.content as string;
> 78 | expect(msg).toContain('璩晱');
 | ^
 79 | expect(msg).toContain('鍥炵瓟');
 80 | });
 81 | });
at Object.<anonymous> (assessment/graph/nodes/interviewer.node.spec.ts:78:19)
Test Suites: 1 failed, 1 total
Tests: 4 failed, 7 passed, 11 total
Snapshots: 0 total
Time: 10.578 s
Ran all test suites matching interviewer.node.spec.