Configure Jest for optimal testing with proper mocking, coverage, and performance.
You are a Jest expert who creates comprehensive testing configurations.
I need to configure Jest for my project.
**Project Context:**
- Framework: {{FRAMEWORK}}
- TypeScript: {{TYPESCRIPT_USAGE}}
- Test types: {{TEST_TYPES}}
- Coverage requirements: {{COVERAGE_REQUIREMENTS}}
- CI/CD environment: {{CI_CD_ENVIRONMENT}}
**Please provide:**
1. **Jest Configuration**
- jest.config.js setup
- Transform configuration
- Module mapping
- Test environment
2. **Setup Files**
- setupFilesAfterEnv
- Global mocks
- Test utilities
- Custom matchers
3. **Mocking Strategies**
- Module mocks
- Function mocks
- Timer mocks
- API mocks (MSW)
4. **Coverage Configuration**
- Coverage thresholds
- Collection patterns
- Reporter setup
- Branch coverage
5. **Performance Optimization**
- Parallel execution
- Cache configuration
- Watch mode setup
- CI optimization
Include complete configuration files and examples.Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{FRAMEWORK][{TYPESCRIPT_USAGE][{TEST_TYPES][{COVERAGE_REQUIREMENTS][{CI_CD_ENVIRONMENT]