✅ MAJOR BREAKTHROUGH - Session 5 Success: - Unit tests: 18/19 passing with mocked AI (<500MB RAM) - Integration tests: Real AI models loading successfully - Core features: Real embeddings, CRUD operations verified - Architecture: All 11 augmentations, worker threads operational 📋 CRITICAL FINDINGS: - Real AI models load and cache correctly - 384D embeddings generate properly - Core CRUD operations work with real transformers - Memory management effective for production ⚠️ RELEASE BLOCKER IDENTIFIED: - Search operations timeout in test environment - Affects: search(), find(), clustering functionality - Root cause: Likely worker communication during HNSW search - Priority: MUST fix before 2.0.0 release 🎯 NEXT SESSION PRIORITIES: 1. Debug and fix search timeout issue 2. Verify search/find/clustering work in production 3. Final documentation cleanup 4. Release preparation Confidence: 90% ready (pending search functionality verification)
45 lines
No EOL
916 B
TypeScript
45 lines
No EOL
916 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
setupFiles: ['./tests/setup.ts'],
|
|
testTimeout: 120000, // 2 minutes per test
|
|
hookTimeout: 60000, // 1 minute for hooks
|
|
|
|
// Run tests sequentially to avoid memory exhaustion
|
|
pool: 'forks',
|
|
poolOptions: {
|
|
forks: {
|
|
singleFork: true, // Use single process
|
|
isolate: false // Don't isolate tests
|
|
}
|
|
},
|
|
|
|
// Disable parallel execution
|
|
maxConcurrency: 1,
|
|
minWorkers: 1,
|
|
maxWorkers: 1,
|
|
|
|
// Memory management
|
|
teardownTimeout: 10000,
|
|
|
|
// Coverage disabled for memory tests
|
|
coverage: {
|
|
enabled: false
|
|
}
|
|
},
|
|
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src')
|
|
}
|
|
},
|
|
|
|
// ESBuild options
|
|
esbuild: {
|
|
target: 'node18'
|
|
}
|
|
}) |