From 82bcf0814d6863dabaca7db09d6a66fc59878031 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 13 Oct 2026 16:02:11 +0000 Subject: [PATCH] test(cli): type the retained skill directory pairs noUncheckedIndexedAccess treats the unlabeled pair list as an open array, so the directory passed to join was string or undefined. --- tests/boundary/cli/clientProfileLifecycle.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/boundary/cli/clientProfileLifecycle.test.ts b/tests/boundary/cli/clientProfileLifecycle.test.ts index 8a71b669d..d320a29b7 100644 --- a/tests/boundary/cli/clientProfileLifecycle.test.ts +++ b/tests/boundary/cli/clientProfileLifecycle.test.ts @@ -287,10 +287,11 @@ cliTest("uninstall names each retained skill directory", async ({ cli }) => { }; const skill = report.items?.find(({ name }) => name === "skill"); expect(skill?.status).toBe("retained"); - for (const [client, directory] of [ + const retainedDirectories = [ ["shared", shared], ["claude_code", claude], - ]) { + ] as const; + for (const [client, directory] of retainedDirectories) { expect(skill?.detail).toContain( `${client} (${directory}): retained (Skill manifest is not REA-owned.)`, );