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 d31485fd2a
commit d5ec547a91
@@ -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.)`,
);