forked from EduCraft/curriculum-project-hub
fix: report untracked legacy symlinks
This commit is contained in:
@@ -48,14 +48,16 @@ describe("legacy project manifest builder", () => {
|
||||
}]);
|
||||
});
|
||||
|
||||
it("rejects symlinked entries instead of silently omitting them", async () => {
|
||||
it("reports untracked symlinked entries instead of silently omitting them", async () => {
|
||||
const root = await mkdtemp(join(tmpdir(), "cph-legacy-manifest-link-"));
|
||||
temporaryRoots.push(root);
|
||||
await symlink("/tmp", join(root, "linked-project"));
|
||||
|
||||
await expect(execute(process.execPath, [
|
||||
const result = await execute(process.execPath, [
|
||||
resolve("deploy/build_legacy_project_manifest.mjs"),
|
||||
root,
|
||||
])).rejects.toMatchObject({ stderr: expect.stringContaining("rejects symbolic link") });
|
||||
]);
|
||||
expect(result.stderr).toContain("skip untracked symbolic link");
|
||||
expect(JSON.parse(result.stdout)).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user