Artifact Contract.Test
Path:
loom-builder/src/artifact-contract.test.tsRelative: src/artifact-contract.test.tsSubproject: loom-builderCategory: dispatch-systemLines: 200Bytes: 7,726Imports: 5Exports: 0has tests
Content Preview
- /**
- * Artifact Contract Tests for run.ts dispatch paths.
- *
- * Proves that run.ts enforces the Dispatch Artifact Contract:
- * 1. payload.json is written with FULL untruncated messages array
- * 2. Archive mirror exists after simulated completion
- * 3. Archive mirror exists after simulated crash (throw inside run)
- *
- * Hermetic — uses mocks to avoid real provider calls.
- */
- import { afterEach, beforeEach, expect, test, mock } from "bun:test";
- import { existsSync, mkdirSync, mkdtempSync, readFile