Prasad P. Pawar created ATLAS-5174:
--------------------------------------

             Summary: Set up Test Infrastructure and Configuration for Atlas 
Dashboard
                 Key: ATLAS-5174
                 URL: https://issues.apache.org/jira/browse/ATLAS-5174
             Project: Atlas
          Issue Type: Sub-task
          Components: atlas-webui
    Affects Versions: 3.0.0
            Reporter: Prasad P. Pawar
            Assignee: Prasad P. Pawar


Set up and configure the testing infrastructure for the Atlas Dashboard React 
application, including Jest, React Testing Library, Cypress, and coverage 
reporting tools.




## Tasks
- [ ] Install and configure Jest with TypeScript support (ts-jest)
- [ ] Install React Testing Library and related dependencies
- [ ] Install and configure Cypress for E2E testing
- [ ] Configure Jest with proper module name mapping and path aliases
- [ ] Set up test environment (jsdom) and global mocks
- [ ] Configure coverage reporting (HTML, LCOV, JSON)
- [ ] Add test scripts to package.json
- [ ] Create test setup files (setupTests.ts)
- [ ] Configure Babel for Jest transformations


## Acceptance Criteria
- ✅ Jest is properly configured and runs without errors
- ✅ All test dependencies are installed and working
- ✅ Test scripts are available in package.json (`test`, `test:coverage`, 
`test:watch`)
- ✅ Coverage reports can be generated successfully
- ✅ Test setup files are created and functional
- ✅ No TypeScript errors in test configuration

## Technical Details
- Jest configuration file: `jest.config.js`
- Test setup file: `src/setupTests.simple.ts`
- Coverage directory: `coverage/`
- Test environment: `jsdom`

## Dependencies
- Node.js 18+
- npm/yarn package manager

## Related Files
- `jest.config.js`
- `package.json`
- `src/setupTests.simple.ts`
- `tsconfig.test.json`
 
- [ ] Set up test utilities and helpers



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to