Failure Clusterer.Test
Path:
loom-sprint-scaffold/loom/tests/synthesis/failure-clusterer.test.tsRelative: loom/tests/synthesis/failure-clusterer.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 200Bytes: 7,278Imports: 3Exports: 0has tests
Content Preview
- /**
- * Tests for H5.1 — Failure Clusterer.
- *
- * Proves:
- * - normalizeErrorSignature strips ids, paths, numbers deterministically
- * - extractFailures correctly identifies failures from enriched events
- * - clusterFailures groups normalized signatures correctly (table-driven)
- * - Empty input → empty output
- * - No failures in events → empty output
- */
- import { describe, expect, test } from "bun:test";
- import { normalizeErrorSignature, extractFailures, clusterFailures, FailureRecord