mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
fd2f37eaa0
Changes: - Fix README.md agent counts (48 QE agents = 41 main + 7 subagents) - Fix README.md skill counts (15 QE-specific skills) - Fix v3/README.md agent counts (47 → 48) - Fix init-wizard.ts hooks from 'npx @agentic-qe/v3' to 'npx agentic-qe' - Complete v2 → v2/ folder reorganization (54 items moved) - Update root package.json to point to v3 as main version Verified claims: - 48 QE agents (41 main + 7 TDD subagents) - 15 QE-specific skills - 12 DDD bounded contexts - ~5,600+ tests - HNSW, ReasoningBank, Queen Coordinator features exist Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
60 lines
1.6 KiB
JavaScript
60 lines
1.6 KiB
JavaScript
/**
|
|
* Separate Jest config for code-intelligence tests
|
|
*
|
|
* Tree-sitter native module state gets corrupted when multiple test files
|
|
* load it in the same process. These tests MUST run in complete isolation.
|
|
*/
|
|
process.env.NODE_ENV = 'test';
|
|
|
|
module.exports = {
|
|
displayName: 'code-intelligence',
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
|
|
// Run code-intelligence tests
|
|
testMatch: [
|
|
'**/tests/code-intelligence/**/*.test.ts'
|
|
],
|
|
|
|
// Exclude benchmarks (they run separately)
|
|
testPathIgnorePatterns: [
|
|
'/benchmarks/',
|
|
'benchmarks\\.test\\.(ts|js)$'
|
|
],
|
|
|
|
roots: ['<rootDir>/tests'],
|
|
|
|
transform: {
|
|
'^.+\\.(ts|tsx)$': ['ts-jest', {
|
|
tsconfig: {
|
|
skipLibCheck: true,
|
|
skipDefaultLibCheck: true
|
|
},
|
|
isolatedModules: true
|
|
}]
|
|
},
|
|
|
|
globalSetup: '<rootDir>/jest.global-setup.ts',
|
|
globalTeardown: '<rootDir>/jest.global-teardown.ts',
|
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts', '<rootDir>/tests/setup.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',
|
|
'^agentdb$': '<rootDir>/__mocks__/agentdb.ts',
|
|
'^(\\.{1,2}/.*)\\.js$': '$1'
|
|
},
|
|
|
|
// CRITICAL: Run each test file in its own worker to avoid native module corruption
|
|
maxWorkers: 1,
|
|
workerIdleMemoryLimit: '1MB', // Force worker restart after each test file
|
|
testTimeout: 60000,
|
|
|
|
transformIgnorePatterns: [
|
|
'node_modules/(?!(@faker-js|uuid|agentdb)/)'
|
|
]
|
|
};
|