immortal-bnb/jest.config.js
Claude ac063b23a8
feat: Phase 7 Complete - Production Readiness & Security
Security:
- Add JWT authentication middleware
- Implement multi-tier rate limiting (API, trading, auth, read)
- Add input validation for all endpoints
- Integrate Helmet for HTTP security headers

Monitoring:
- Add Prometheus metrics (HTTP, trading, AI, memory, WebSocket)
- Create alert rules for critical conditions
- Add /metrics endpoint for scraping
- Configure Prometheus and Grafana

Testing:
- Add Jest test configuration
- Create unit tests (orchestrator, auth, memory)
- Add test scripts to package.json
- Configure coverage reporting

Deployment:
- Create production deployment script
- Add automated backup script
- Create rollback script
- Add environment setup script

Documentation:
- Create comprehensive production deployment guide
- Add Phase 7 completion summary
- Include troubleshooting procedures
- Add maintenance checklists

CI/CD:
- Update GitHub Actions workflow
- Add security scanning
- Configure automated testing
- Add deployment automation
2025-11-12 00:34:02 +00:00

31 lines
793 B
JavaScript

/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src', '<rootDir>/tests'],
testMatch: ['**/__tests__/**/*.ts', '**/*.test.ts', '**/*.spec.ts'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
'!src/**/*.test.ts',
'!src/**/*.spec.ts',
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
extensionsToTreatAsEsm: ['.ts'],
globals: {
'ts-jest': {
useESM: true,
tsconfig: {
esModuleInterop: true,
allowSyntheticDefaultImports: true,
},
},
},
testTimeout: 10000,
};