Outcome.Test

loom-builder-soltesttypescript
Path: loom-builder-sol/src/outcome.test.tsRelative: src/outcome.test.tsSubproject: loom-builder-solCategory: dispatch-system-sol
Lines: 35Bytes: 1,452Imports: 3Exports: 0has tests

Content Preview

  1. import { describe, expect, test } from "bun:test";
  2. import { normalizeMaxReformulations, settleStatusAfterValidation, validationPassed } from "./outcome.js";
  3. import type { DispatchOutcome } from "./types.js";
  4. const pass: DispatchOutcome["validation"] = [{ label: "artifact exists", exitCode: 0, tail: "" }];
  5. const fail: DispatchOutcome["validation"] = [{ label: "artifact exists", exitCode: 1, tail: "missing" }];
  6. describe("validation outcome settlement", () => {
  7. test("HALTED with passing gates b