Skip to content

Commit bd6bfe3

Browse files
author
Peter Steinberger
committed
test(claws): expect symlink diagnostic for tampered plan parents
1 parent eb6c75b commit bd6bfe3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/claws/workspace.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ describe("createClawWorkspaceFiles", () => {
290290
action.source = join(plan.claw.packageRoot, "content-link", "AGENTS.md");
291291

292292
await expect(createClawWorkspaceFiles(plan, { env: stateEnv(root) })).rejects.toMatchObject({
293-
diagnostics: [expect.objectContaining({ code: "workspace_file_path_alias" })],
293+
// fs-safe 0.5.2 rejects the symlinked parent before the alias check runs.
294+
diagnostics: [expect.objectContaining({ code: "workspace_file_symlink" })],
294295
});
295296
await expect(readFile(join(workspace, "AGENTS.md"), "utf8")).rejects.toThrow();
296297
},

0 commit comments

Comments
 (0)