test: verify current maintenance boundary behavior

This commit is contained in:
N0zoM1z0
2026-10-11 02:34:45 +08:00
parent d1e6fe2eca
commit 058bc0af35
5 changed files with 53 additions and 15 deletions
@@ -157,6 +157,8 @@ describe("Qwen Code profile setup", () => {
expect(await setup.clientNeedsConfigure(client, {}, command)).toBe(false);
expect(await setup.skillNeedsInstall([client.name])).toBe(false);
expect(await setup.installSkill([client.name])).toBe("unchanged");
const userFile = join(skill, "user-note.txt");
await writeFile(userFile, "caller-owned skill notes\n");
expect(
(
await readClientRegistrationStatuses(
@@ -173,7 +175,12 @@ describe("Qwen Code profile setup", () => {
expect(registered).toEqual(client);
expect((await uninstall.removeClient(client)).status).toBe("removed");
expect((await uninstall.removeSkill()).status).toBe("removed");
await expect(access(skill)).rejects.toMatchObject({ code: "ENOENT" });
await expect(access(join(skill, "SKILL.md"))).rejects.toMatchObject({
code: "ENOENT",
});
expect(await readFile(userFile, "utf8")).toBe(
"caller-owned skill notes\n",
);
if (customHome)
await expect(access(join(home, ".qwen"))).rejects.toMatchObject({
code: "ENOENT",