feat(artifacts): name the integrity check for target digests, Apple bundle readers and extraction (#11125)

This commit is contained in:
morluto authored and GitHub committed 2026-11-15 21:05:00 +08:00
1 parent 682a57a987
commit 6363881faa
13 files changed
+82 -34

No files matched your search

+8 -2
View File
@@ -84,7 +84,10 @@ it("refuses wrong initial digest and a changed selected file even after a return
undefined,
run,
),
).rejects.toMatchObject({ reason: "integrity" });
).rejects.toMatchObject({
reason: "integrity",
integrityCheck: "container-identity",
});
expect(run).not.toHaveBeenCalled();
await expect(
withNativeMachoSource(f, scope, undefined, async () => {
@@ -111,7 +114,10 @@ it("refuses a path replacement during the producer callback", async () => {
await writeFile(f.path, f.bytes);
return "result";
}),
).rejects.toMatchObject({ reason: "integrity" });
).rejects.toMatchObject({
reason: "integrity",
integrityCheck: "container-identity",
});
} finally {
await scope.close();
await rm(f.root, { recursive: true, force: true });