Files
rea/src/domain/validationTaxonomy.test.ts
T
morluto f72931d9dd test: eliminate fixture races and prune redundant scaffolding (#849)
* test: eliminate fixture races and prune redundant scaffolding

* fix(test): publish launcher capture readiness without renaming
2026-10-07 12:25:37 +08:00

26 lines
711 B
TypeScript

import { describe, expect, it } from "vitest";
import {
parseArtifactInventoryEvidence,
tryAssembleInventorySet,
} from "./artifactInventoryEvidence.js";
describe("inventory validation failure channels", () => {
it("returns the empty-pages leaf as Result without throwing", () => {
const result = tryAssembleInventorySet([]);
expect(result).toEqual({
ok: false,
error: {
code: "empty",
message: "Artifact inventory requires Evidence pages",
},
});
});
it("keeps the throwing entry contract for empty input", () => {
expect(() => parseArtifactInventoryEvidence([])).toThrowError(
"Artifact inventory requires Evidence pages",
);
});
});