| 112 | } |
| 113 | |
| 114 | async function testBootstrapData() { |
| 115 | console.log('\n--- Bootstrap Data ---') |
| 116 | try { |
| 117 | const bootstrap = await import('../src/services/api/bootstrap.js') |
| 118 | |
| 119 | // fetchBootstrapData should not crash — just skip when no auth |
| 120 | await bootstrap.fetchBootstrapData() |
| 121 | pass('fetchBootstrapData', 'completes without crash (skips when no auth)') |
| 122 | } catch (err: any) { |
| 123 | // fetchBootstrapData catches its own errors, so this means an import-level issue |
| 124 | fail('Bootstrap data', err.message) |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | async function testSessionMemoryUtils() { |
| 129 | console.log('\n--- Session Memory ---') |