Exit Matrix.Test
Path:
loom-builder-sol/src/exit_matrix.test.tsRelative: src/exit_matrix.test.tsSubproject: loom-builder-solCategory: dispatch-system-solLines: 154Bytes: 5,568Imports: 3Exports: 0has tests
Content Preview
- import { describe, test, expect } from "bun:test";
- import { exitToVerdict, isRetryable, canBeDone, retryBackoffMs } from "./exit_matrix.js";
- import { lintSpec } from "./spec_lint.js";
- describe("exit_matrix — verdict mapping", () => {
- test("exit 0 → COMPLETE", () => {
- expect(exitToVerdict(0, null)).toBe("COMPLETE");
- });
- test("exit -1 → RETRYABLE (bug case from task)", () => {
- expect(exitToVerdict(-1, null)).toBe("RETRYABLE");
- });
- test("exit 1 → RETRYABLE", () => {
- expect(ex