From 622eba13a16c6aaba3de3340d0dd670525bcd14a Mon Sep 17 00:00:00 2001 From: Mick Cooney Date: Sun, 18 Oct 2026 16:00:58 +0100 Subject: [PATCH] test(r): type the refusal in the leading-dot rename test for the strict:false typecheck --- gitnexus/test/unit/r-rename-leading-dot.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gitnexus/test/unit/r-rename-leading-dot.test.ts b/gitnexus/test/unit/r-rename-leading-dot.test.ts index 93ee62f2f9..621b2e402f 100644 --- a/gitnexus/test/unit/r-rename-leading-dot.test.ts +++ b/gitnexus/test/unit/r-rename-leading-dot.test.ts @@ -40,8 +40,9 @@ describe('R rename: functions R calls by name', () => { files: new Map(), graph: undefined, } as never); - expect(issue?.code).toBe('unsupported_occurrence'); - expect(issue?.message).toMatch(/hook/); + const refusal = issue as { code?: string; message?: string } | undefined; + expect(refusal?.code).toBe('unsupported_occurrence'); + expect(refusal?.message).toMatch(/hook/); }, ); });