test: cast readonly sandbox expectation shape
This commit is contained in:
@@ -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', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user