test(subagent): type blocked SDK outcomes precisely
This commit is contained in:
1 parent
12c7e968a0
commit
1c5305ca22
1 file changed
+1
-1
@@ -88,7 +88,7 @@ describe('sdkChildOutcome', () => {
|
||||
stopReason: 'aborted',
|
||||
diagnostic: expectedFailure('stage: session-run; category: child-disposed'),
|
||||
})
|
||||
expect(sdkChildOutcome({ kind: 'blocked', reason: { kind: 'policy' } })).toEqual({ stopReason: 'refusal' })
|
||||
expect(sdkChildOutcome({ kind: 'blocked' })).toEqual({ stopReason: 'refusal' })
|
||||
expect(sdkChildOutcome({ kind: 'error', error: { message: 'x', code: 'UNKNOWN' } })).toEqual({
|
||||
stopReason: 'error',
|
||||
diagnostic: expectedFailure('stage: session-run; category: child-error'),
|
||||
|
||||
Reference in new issue
Block a user