Dispatch Archive.Test
Path:
loom-builder-sol/src/dispatch-archive.test.tsRelative: src/dispatch-archive.test.tsSubproject: loom-builder-solCategory: dispatch-system-solLines: 87Bytes: 3,621Imports: 4Exports: 0has tests
Content Preview
- /**
- * Structural proof of the Dispatch Artifact Contract across paths.
- * Asserts: on BOTH normal completion AND a SIGTERM kill, a FULL UNTRUNCATED payload.json
- * lands in DISPATCH_ARCHIVE/latest. Hermetic — no real provider calls; uses stub commands.
- */
- import { afterEach, beforeEach, expect, test } from "bun:test";
- import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
- import { tmpdir } from "node:os";
- import { join } from "node:path";
- const ARCHIVER = join