brainy/tests/unit/types
David Snelling c5dcdf6033 fix: update tests for Stage 3 CANONICAL taxonomy (42 nouns, 127 verbs)
Stage 3 taxonomy (v5.5.0) expanded from 31→42 noun types and 40→127
verb types but tests weren't updated. This fixes all test failures.

FIXES:
- typeUtils.test.ts: Update all hardcoded type indexes for new enum order
  - Document: index 6→13, Resource: index 30→34
  - InstanceOf: index 0 (was RelatedTo), During: index 10 (was Creates)
  - Update round-trip loops: 31→42 nouns, 40→127 verbs
  - Fix Uint32Array test expectations

- brainyTypes.ts: Add missing type descriptions for Stage 3 types
  - Added 11 new noun type descriptions (quality, timeInterval, function, etc.)
  - Add graceful handling for missing descriptions (prevents crash)

TEST RESULTS:
 46 test files passing (was 44 failing)
 1147 tests passing (was 1136 failing)
 100% pass rate restored

Root cause: Tests had hardcoded expectations from pre-Stage-3 taxonomy.
2025-11-11 10:09:01 -08:00
..
typeUtils.test.ts fix: update tests for Stage 3 CANONICAL taxonomy (42 nouns, 127 verbs) 2025-11-11 10:09:01 -08:00