Preflight.Test

loom-sprint-scaffoldtesttypescript
Path: loom-sprint-scaffold/loom/tests/execution/preflight.test.tsRelative: loom/tests/execution/preflight.test.tsSubproject: loom-sprint-scaffoldCategory: tests
Lines: 133Bytes: 4,732Imports: 2Exports: 0has tests

Content Preview

  1. /**
  2. * Tests for preflight (H3.7).
  3. *
  4. * Proves:
  5. * - clean files (no markers) pass
  6. * - every marker (TODO, FIXME, <<<<<<<, =======, >>>>>>>) is detected
  7. * - violations carry file path, line number, and line content
  8. * - multiple markers in one file are all detected
  9. * - errorMessage contains all violations
  10. * - empty file list passes
  11. */
  12. import { describe, expect, test } from "bun:test";
  13. import { checkPreflight } from "../../src/execution/preflight";
  14. describe("checkPreflight", () => {
  15. test