From bf48ff697a569bed9f5e9b062f8422abf0fc06b6 Mon Sep 17 00:00:00 2001 From: garrytan Date: Tue, 3 Nov 2026 03:06:32 +0000 Subject: [PATCH] test(review): kept reasons typed as literals for the test typecheck ratchet Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/review-exclude.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/review-exclude.test.ts b/test/review-exclude.test.ts index 49847ad7d..a6f9f3255 100644 --- a/test/review-exclude.test.ts +++ b/test/review-exclude.test.ts @@ -416,7 +416,7 @@ describe('a branch cannot hide code under a base pattern', () => { const secret = '{"cmd": "curl -H $OPENAI_API_KEY"}\n'; commit(repo, { '.gitattributes': 'receipts/** binary\n', 'receipts/s.json': secret, 'receipts/a.b/c.json': secret, 'receipts/a.json': '{"ok": true}\n', 'receipts/a/t.json': '{"ok": true}\n' }); const p = JSON.parse(plan(repo, ['--json']).out); - const kept = [{ path: 'receipts/a.b/c.json', reason: 'secret-line' }, { path: 'receipts/s.json', reason: 'secret-line' }]; + const kept = [{ path: 'receipts/a.b/c.json', reason: 'secret-line' as const }, { path: 'receipts/s.json', reason: 'secret-line' as const }]; expect(p.review_exclude.kept_files).toEqual(kept); expect(p.review_exclude).toMatchObject({ excluded: 2, content: { data: 2 } }); const head = repo.git('rev-parse', 'HEAD');