Enforcement.Test

pi-cybernetictesttypescript
Path: pi-cybernetic/test/enforcement.test.tsRelative: test/enforcement.test.tsSubproject: pi-cyberneticCategory: cybernetic-tests
Lines: 247Bytes: 8,996Imports: 6Exports: 0has tests

Content Preview

  1. /**
  2. * Unit tests for the enforcement bridge: classifySkill, buildArtifact, emitArtifact.
  3. * Tests deterministic mapping only — no LLM, no external dependencies.
  4. */
  5. import { describe, expect, test, afterAll } from "bun:test";
  6. import { readdirSync, readFileSync, existsSync, rmSync } from "node:fs";
  7. import { join } from "node:path";
  8. import { classifySkill, buildArtifact, type EnforcementArtifact } from "../src/enforcement/index.ts";
  9. import { emitArtifact, PENDING_DIR } from "../src/enforcement/ex