Preflight.Test
Path:
loom-builder/src/preflight.test.tsRelative: src/preflight.test.tsSubproject: loom-builderCategory: dispatch-systemLines: 173Bytes: 5,539Imports: 5Exports: 0has tests
Content Preview
- /**
- * Tests for token-cliff gate: pre-flight estimate, runtime ceiling, chain awareness.
- */
- import { describe, test, expect, afterAll } from "bun:test";
- import { readFileSync, writeFileSync, unlinkSync, existsSync, mkdirSync, rmSync } from "node:fs";
- import { join, resolve } from "node:path";
- import { estimateTokens, preflightCheck, type PreFlightError } from "./preflight.js";
- import type { DispatchSpec, DispatchOutcome } from "./types.js";
- const FIXTURES_DIR = resolve(import.meta.dir, "..",