tractatus/tests/unit
TheFlow 18586a2622 fix: Add async/await to pressure monitoring and framework tests
- Make analyzeSession() async in check-session-pressure.js
- Add await before monitor.analyzePressure() call
- Wrap main execution in async IIFE with error handling
- Update all ContextPressureMonitor tests to use async/await
- Fix MetacognitiveVerifier edge case assertion (toBeLessThanOrEqual)

Fixes TypeError: Cannot read properties of undefined (reading 'tokenUsage')
that was blocking session initialization.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 13:45:33 +13:00
..
services feat: implement Rule Manager and Project Manager admin systems 2025-10-11 17:16:51 +13:00
AdaptiveCommunicationOrchestrator.test.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
BlogCuration.service.test.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
BoundaryEnforcer.test.js fix: MongoDB persistence and inst_016-018 content validation enforcement 2025-10-11 00:17:03 +13:00
ClaudeAPI.test.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
ContextPressureMonitor.test.js fix: Add async/await to pressure monitoring and framework tests 2025-12-09 13:45:33 +13:00
CrossReferenceValidator.test.js test: add comprehensive unit test suite for Tractatus governance services 2025-10-07 01:11:21 +13:00
InstructionPersistenceClassifier.test.js test: add comprehensive unit test suite for Tractatus governance services 2025-10-07 01:11:21 +13:00
koha.service.test.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
markdown.util.test.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
MemoryProxy.service.test.js fix(tests): update MemoryProxy tests for v3 MongoDB architecture 2025-10-21 12:14:57 +13:00
MetacognitiveVerifier.test.js fix: Add async/await to pressure monitoring and framework tests 2025-12-09 13:45:33 +13:00
PluralisticDeliberationOrchestrator.test.js test(unit): add comprehensive tests for value pluralism services 2025-10-12 16:35:30 +13:00
ProhibitedTermsScanner.test.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00