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:
@@ -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.)`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user