test: cast readonly sandbox expectation shape

This commit is contained in:
ejclaw
2026-04-22 20:57:59 +09:00
parent 13ac26b80e
commit bf4cbd0319

View File

@@ -136,9 +136,9 @@ describe('claude reviewer runtime guard', () => {
['/repo/work'], ['/repo/work'],
'linux', 'linux',
'best-effort', 'best-effort',
); ) as { failIfUnavailable?: boolean };
expect(sandbox?.failIfUnavailable).toBe(false); expect(sandbox.failIfUnavailable).toBe(false);
}); });
it('keeps non-linux reviewers in best-effort sandbox mode', () => { it('keeps non-linux reviewers in best-effort sandbox mode', () => {
@@ -150,9 +150,9 @@ describe('claude reviewer runtime guard', () => {
['/repo/work'], ['/repo/work'],
'darwin', 'darwin',
'best-effort', 'best-effort',
); ) as { failIfUnavailable?: boolean };
expect(sandbox?.failIfUnavailable).toBe(false); expect(sandbox.failIfUnavailable).toBe(false);
}); });
it('flags mutating shell commands', () => { it('flags mutating shell commands', () => {