Mode Registry.Test

loom-sprint-scaffoldtesttypescript
Path: loom-sprint-scaffold/loom/tests/dispatcher/mode-registry.test.tsRelative: loom/tests/dispatcher/mode-registry.test.tsSubproject: loom-sprint-scaffoldCategory: tests
Lines: 198Bytes: 6,916Imports: 3Exports: 0has tests

Content Preview

  1. /**
  2. * Tests for ModeRegistry (H2.1).
  3. *
  4. * Proves:
  5. * - unknown variety_class → highest-capability mode + variety_deficit: true
  6. * - known class → highest success-rate mode selected (table-driven, ≥3 modes)
  7. */
  8. import { describe, expect, test } from "bun:test";
  9. import { ModeRegistry } from "../../src/dispatcher/core/mode-registry";
  10. import type { ModeRegistryRow, RegistryStore } from "../../src/dispatcher/core/types";
  11. // ── Fake store ───────────────────────────────────────────────────────────