Contracts.Test
Path:
loom-sprint-scaffold/loom/tests/contracts.test.tsRelative: loom/tests/contracts.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 81Bytes: 3,573Imports: 19Exports: 0has tests
Content Preview
- import { describe, expect, test } from "bun:test";
- import { parseContract, checkContract, isContractName } from "../src/lib/validate";
- import { ContractViolationError } from "../src/types/errors";
- import { CONTRACT_NAMES, type ContractName } from "../src/types/contracts";
- import validGoalState from "./fixtures/valid/goal-state.json";
- import validStageSpec from "./fixtures/valid/stage-spec.json";
- import validDispatchEnvelope from "./fixtures/valid/dispatch-envelope.json";
- import validExecutionTr