Mode Registry.Test
Path:
loom-sprint-scaffold/loom/tests/dispatcher/mode-registry.test.tsRelative: loom/tests/dispatcher/mode-registry.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 198Bytes: 6,916Imports: 3Exports: 0has tests
Content Preview
- /**
- * Tests for ModeRegistry (H2.1).
- *
- * Proves:
- * - unknown variety_class → highest-capability mode + variety_deficit: true
- * - known class → highest success-rate mode selected (table-driven, ≥3 modes)
- */
- import { describe, expect, test } from "bun:test";
- import { ModeRegistry } from "../../src/dispatcher/core/mode-registry";
- import type { ModeRegistryRow, RegistryStore } from "../../src/dispatcher/core/types";
- // ── Fake store ───────────────────────────────────────────────────────────