Import Lesson.Test

loom-buildertesttypescript
Path: loom-builder/src/import-lesson.test.tsRelative: src/import-lesson.test.tsSubproject: loom-builderCategory: dispatch-system
Lines: 343Bytes: 11,737Imports: 4Exports: 0has tests

Content Preview

  1. /**
  2. * Tests for import-lesson.ts — the bridge from pi-cybernetic enforcement
  3. * artifacts to loom-builder's gate governance system.
  4. *
  5. * CRITICAL: Uses a TEMP sandbox gates dir + temp queue. NEVER touches the
  6. * real gates/ dir or cuts a real gate version in tests.
  7. */
  8. import { describe, expect, test, beforeAll, afterAll } from "bun:test";
  9. import {
  10. existsSync,
  11. mkdirSync,
  12. readFileSync,
  13. writeFileSync,
  14. readdirSync,
  15. rmSync,
  16. } from "node:fs";
  17. import { join, resolve } from "node:path";
  18. i