A comprehensive QA-focused template demonstrating industry best practices for frontend testing architecture. Uses a weather dashboard as a practical example to showcase various testing strategies and CI/CD implementation.
- Unit Testing: Jest + React Testing Library
- Component isolation testing
- Mocking strategies implementation
- Playwright Integration
- Page Object Model (POM) implementation
- Cross-browser testing setup
- Mobile responsive testing
- Network request mocking
- GitHub Actions Integration
- Parallel test execution
- Build verification
- Test artifact preservation
- Coverage reporting
- Automated deployments
- Component isolation
- Test data management
- Error boundary testing
- Accessibility testing
- API mocking strategies
- Framework: React + Vite + TypeScript
- Testing: Jest, RTL, Playwright
- CI/CD: GitHub Actions
- Deployment: Github Pages
- Styling: TailwindCSS
- State Management: React Query
- Unit Tests: >80%
- E2E Coverage: Critical user paths
- Automatic PR checks
- Coverage reporting
# Install dependencies
yarn install
# Run unit tests
yarn test
# Run E2E tests
yarn test:e2e-
PR Created:
- Lint checks
- Unit tests with coverage
- Build verification
- E2E tests
- Preview deployment
-
Main Branch:
- Full test suite
- Production build
- Deployment
- Frontend testing framework setup
- CI/CD pipeline implementation
- QA automation practices
- Test strategy development
- Developer workflow optimization
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.
MIT
This project serves as a reference implementation for QA engineers and developers looking to:
- Set up a modern frontend testing architecture
- Implement CI/CD with automated testing
- Follow testing best practices
- Establish code quality standards
- Create maintainable test suites
The weather dashboard serves as a practical example, demonstrating:
- Component testing strategies
- API integration testing
- User interaction testing
- Error handling testing
- Performance monitoring
- Accessibility compliance
Perfect for:
- QA Engineers
- Frontend Developers
- DevOps Engineers
- Testing Teams
- CI/CD Implementation
Tags: testing qa automation ci-cd react playwright jest rtl typescript github-actions vercel