Registry Updater.Test
Path:
loom-sprint-scaffold/loom/tests/synthesis/registry-updater.test.tsRelative: loom/tests/synthesis/registry-updater.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 208Bytes: 7,132Imports: 4Exports: 0has tests
Content Preview
- /**
- * Tests for H5.3 — Registry Updater.
- *
- * Proves:
- * - computeModeStats groups correctly by (model, harnessProfile, varietyClass)
- * - Same input → same output (deterministic, byte-equal JSON via statsToDeterministicJson)
- * - Hand-computed stats match
- * - Empty input → empty output
- * - avg_cost_tokens round to integer
- */
- import { describe, expect, test } from "bun:test";
- import {
- computeModeStats,
- toRegistryUpdates,
- runRegistryUpdater,
- statsToDeterministicJson,
- Mod