27 lines
784 B
JavaScript
27 lines
784 B
JavaScript
/**
|
|
* [Mnemosyne] Smoke Test — The Nexus
|
|
* Verifies core components are loadable and basic state is consistent.
|
|
*/
|
|
|
|
import { SpatialMemory } from '../nexus/components/spatial-memory.js';
|
|
import { MemoryOptimizer } from '../nexus/components/memory-optimizer.js';
|
|
|
|
console.log('--- [Mnemosyne] Running Smoke Test ---');
|
|
|
|
// 1. Verify Components
|
|
if (!SpatialMemory || !MemoryOptimizer) {
|
|
console.error('Failed to load core components');
|
|
process.exit(1);
|
|
}
|
|
console.log('Components loaded.');
|
|
|
|
// 2. Verify Regions
|
|
const regions = Object.keys(SpatialMemory.REGIONS || {});
|
|
if (regions.length < 5) {
|
|
console.error('SpatialMemory regions incomplete:', regions);
|
|
process.exit(1);
|
|
}
|
|
console.log('Regions verified:', regions.join(', '));
|
|
|
|
console.log('--- Smoke Test Passed ---');
|