Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(module-pins): merge nested proof overrides in parity fixtures

Steven Enamakel41c43fa3e1e2
diff --git a/scripts/__tests__/module-pins.test.mjs b/scripts/__tests__/module-pins.test.mjs
index d95a16f666..cd7887e5a8 100644
--- a/scripts/__tests__/module-pins.test.mjs
+++ b/scripts/__tests__/module-pins.test.mjs
@@ -416,7 +416,12 @@ test("source parity proof rejects descendants, dirty files, asset drift, renames
]) {
const f = sourceParityFixture();
try {
- const proof = { ...f.parity, ...overrides.proof };
+ const proof = {
+ ...f.parity,
+ ...overrides.proof,
+ testFile: { ...f.parity.testFile, ...overrides.proof?.testFile },
+ binding: { ...f.parity.binding, ...overrides.proof?.binding },
+ };
const result = validate(f, { ...overrides, proof });
assert.match(result.message, diagnostic, `${name} mutant failed for the wrong reason: ${result.message}`);
} finally {