test: consolidate failure guards and trim unused fixture APIs

This commit is contained in:
morluto
2026-10-09 03:13:43 +08:00
parent 81ae838567
commit ffd9611308
38 changed files with 90 additions and 203 deletions
@@ -81,8 +81,7 @@ describe("artifact extraction", () => {
output_root: output,
}),
);
expect(result.ok).toBe(true);
if (!result.ok) return;
if (!result.ok) throw result.error;
const firstExtraction = artifactExtractionResultSchema.parse(
result.value.result,
);
@@ -110,8 +109,7 @@ describe("artifact extraction", () => {
output_root: relocatedOutput,
}),
);
expect(relocated.ok).toBe(true);
if (!relocated.ok) return;
if (!relocated.ok) throw relocated.error;
expect(
artifactExtractionResultSchema.parse(relocated.value.result)
.extraction_manifest,