test(r): type the refusal in the leading-dot rename test for the strict:false typecheck

This commit is contained in:
Mick Cooney 2026-10-18 16:00:58 +01:00
parent 244a23f2e3
commit 622eba13a1

View file

@ -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/);
},
);
});