Testing for Frontend Developers
Testing checks that code behaves as expected, using unit tests, component tests and end-to-end tests.
Stage: Quality and shipping · Part of the Frontend Developer roadmap · Last reviewed 19 November 2026
What to learn in Testing
- Jest and React Testing Library
- End-to-end with Playwright
- Test-driven habits
Testing interview questions
What is the testing pyramid?
Many fast unit tests at the base, fewer integration tests in the middle, and a small number of slow end-to-end tests at the top.
Where Testing fits in the Frontend Developer roadmap
Testing belongs to the Quality and shipping stage. Test, optimise and deploy.
Other units in this stage
Back to the full Frontend Developer roadmap