test: verify current maintenance boundary behavior
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user