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.
This commit is contained in:
Cursor Agent
2026-10-13 16:02:11 +00:00
parent 474b34c570
commit 82bcf0814d
@@ -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.)`,
);