Enforcement.Test
Path:
pi-cybernetic/test/enforcement.test.tsRelative: test/enforcement.test.tsSubproject: pi-cyberneticCategory: cybernetic-testsLines: 247Bytes: 8,996Imports: 6Exports: 0has tests
Content Preview
- /**
- * Unit tests for the enforcement bridge: classifySkill, buildArtifact, emitArtifact.
- * Tests deterministic mapping only — no LLM, no external dependencies.
- */
- import { describe, expect, test, afterAll } from "bun:test";
- import { readdirSync, readFileSync, existsSync, rmSync } from "node:fs";
- import { join } from "node:path";
- import { classifySkill, buildArtifact, type EnforcementArtifact } from "../src/enforcement/index.ts";
- import { emitArtifact, PENDING_DIR } from "../src/enforcement/ex