mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
- Reorganize v3/ into implementation/ subfolders: - planning/, architecture/, migration/, integration/ - security/, adrs/, research/, swarm-plans/ - Add 15-agent concurrent swarm implementation plans: - SWARM-OVERVIEW.md: Hierarchical mesh topology, 4 phases - AGENT-SPECIFICATIONS.md: 15 agent configs with capabilities - TDD-LONDON-SCHOOL-PLAN.md: Mock-first TDD methodology - BENCHMARK-OPTIMIZATION.md: Performance targets (2.49x-7.47x) - DEPLOYMENT-PLAN.md: Release strategy, CI/CD, rollback - GITHUB-ISSUE-TRACKING.md: Issue workflow with agent replies - Update .claude/settings.json with proper hooks format - Add bash aliases for claude --dangerously-skip-permissions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
75 lines
2.1 KiB
JavaScript
75 lines
2.1 KiB
JavaScript
export default {
|
|
preset: 'ts-jest/presets/default-esm',
|
|
extensionsToTreatAsEsm: ['.ts'],
|
|
testEnvironment: 'node',
|
|
roots: ['<rootDir>/src', '<rootDir>/tests'],
|
|
testMatch: [
|
|
'<rootDir>/tests/**/*.test.ts',
|
|
'<rootDir>/tests/**/*.test.js',
|
|
'<rootDir>/tests/**/*.spec.ts',
|
|
'<rootDir>/tests/**/*.spec.js',
|
|
'<rootDir>/src/**/*.test.ts',
|
|
'<rootDir>/src/**/*.test.js',
|
|
'<rootDir>/src/**/*.spec.ts',
|
|
'<rootDir>/src/**/*.spec.js'
|
|
],
|
|
testPathIgnorePatterns: [
|
|
'<rootDir>/node_modules/',
|
|
'<rootDir>/dist/',
|
|
'<rootDir>/bin/',
|
|
'<rootDir>/tests/.*\\.broken$'
|
|
],
|
|
transform: {
|
|
'^.+\\.ts$': ['ts-jest', {
|
|
useESM: true,
|
|
tsconfig: {
|
|
module: 'es2022',
|
|
moduleResolution: 'node',
|
|
allowSyntheticDefaultImports: true,
|
|
esModuleInterop: true,
|
|
target: 'es2022'
|
|
}
|
|
}],
|
|
'^.+\\.js$': ['babel-jest', {
|
|
presets: [['@babel/preset-env', { modules: false }]]
|
|
}]
|
|
},
|
|
moduleNameMapper: {
|
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
'^~/(.*)$': '<rootDir>/src/$1',
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
'^@tests/(.*)$': '<rootDir>/tests/$1'
|
|
},
|
|
modulePathIgnorePatterns: [
|
|
'<rootDir>/dist/',
|
|
'<rootDir>/bin/',
|
|
'<rootDir>/node_modules/'
|
|
],
|
|
transformIgnorePatterns: [
|
|
'node_modules/(?!(chalk|ora|inquirer|nanoid|fs-extra|ansi-styles|ruv-swarm|@modelcontextprotocol)/)'
|
|
],
|
|
resolver: undefined,
|
|
collectCoverageFrom: [
|
|
'src/**/*.ts',
|
|
'src/**/*.js',
|
|
'!src/**/*.d.ts',
|
|
'!src/**/*.test.ts',
|
|
'!src/**/*.test.js',
|
|
'!src/**/*.spec.ts',
|
|
'!src/**/*.spec.js'
|
|
],
|
|
coverageDirectory: 'coverage',
|
|
coverageReporters: ['text', 'lcov', 'html'],
|
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
|
testTimeout: 30000,
|
|
verbose: true,
|
|
// Enhanced error handling
|
|
errorOnDeprecated: false,
|
|
// Better module resolution
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
// Clear mocks between tests
|
|
clearMocks: true,
|
|
restoreMocks: true,
|
|
// Remove deprecated globals configuration
|
|
// ts-jest configuration moved to transform options above
|
|
}; |