mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
dc91c7d39c
Wave 3 - Incremental Indexing & Embeddings: - IncrementalIndexer with content hashing and change detection - FileWatcher with debouncing and pattern matching - GitChangeDetector for commit-based change tracking - ASTChunker with semantic boundaries (avg 847 tokens) - NomicEmbedder with Ollama nomic-embed-text integration Wave 4 - Knowledge Graph: - GraphBuilder with SQL-based node/edge storage - RelationshipExtractor for inheritance, calls, implements - ImportParser for multi-language import resolution - TestMapper for test-to-source file correlation Wave 5 - Hybrid Search & RAG: - BM25Search with TF-IDF ranking - VectorSearch with pgvector/in-memory fallback - HybridSearchEngine with RRF fusion (k=60) - CodeChunkStore for PostgreSQL persistence - CodeIntelligenceHybridRouter for embeddings - ContextBuilder and GraphExpander for RAG - SemanticRetriever for context-aware retrieval Infrastructure: - Separate Jest configs for code-intelligence tests - Worker isolation to prevent tree-sitter corruption - Fixed FileWatcher timer issues (real timers) - 467 tests passing, 4 skipped (Ollama-only) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
57 lines
1.4 KiB
JavaScript
57 lines
1.4 KiB
JavaScript
/**
|
|
* Separate Jest config for benchmark tests
|
|
*
|
|
* These tests corrupt tree-sitter native module state and must run
|
|
* in complete isolation from other tests.
|
|
*/
|
|
process.env.NODE_ENV = 'test';
|
|
|
|
module.exports = {
|
|
displayName: 'benchmarks',
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
|
|
// Only run benchmark tests (both in benchmarks/ folder and files named benchmarks.test.ts)
|
|
testMatch: [
|
|
'**/benchmarks/**/*.test.ts',
|
|
'**/*benchmarks.test.ts'
|
|
],
|
|
|
|
roots: ['<rootDir>/tests'],
|
|
|
|
transform: {
|
|
'^.+\\.(ts|tsx)$': ['ts-jest', {
|
|
tsconfig: {
|
|
skipLibCheck: true,
|
|
skipDefaultLibCheck: true
|
|
},
|
|
isolatedModules: true
|
|
}]
|
|
},
|
|
|
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts', '<rootDir>/tests/setup.ts'],
|
|
|
|
globalSetup: '<rootDir>/jest.global-setup.ts',
|
|
globalTeardown: '<rootDir>/jest.global-teardown.ts',
|
|
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
'^@core/(.*)$': '<rootDir>/src/core/$1',
|
|
'^@agents/(.*)$': '<rootDir>/src/agents/$1',
|
|
'^@types$': '<rootDir>/src/types/index.ts',
|
|
'^@types/(.*)$': '<rootDir>/src/types/$1',
|
|
// Mock agentdb ESM module
|
|
'^agentdb$': '<rootDir>/__mocks__/agentdb.ts',
|
|
'^(\\.{1,2}/.*)\\.js$': '$1'
|
|
},
|
|
|
|
// Run in isolation
|
|
maxWorkers: 1,
|
|
testTimeout: 30000,
|
|
cache: false, // Don't cache to avoid state pollution
|
|
|
|
transformIgnorePatterns: [
|
|
'node_modules/(?!(@faker-js|uuid|agentdb)/)'
|
|
]
|
|
};
|