Automated Testing for Web Apps: Jest, Cypress & CI
Write tests that catch real bugs — unit, integration, and end-to-end, wired into CI
What you'll learn
- Write unit and integration tests with Jest that actually catch regressions
- Test asynchronous code and mock external dependencies cleanly
- Drive a browser with Cypress to verify real user flows end to end
- Decide what to test at each level to get confidence without wasted effort
- Run your test suite automatically in a CI pipeline on every push
Skills you'll gain
About this course
Tests are what let a team ship quickly without breaking things — and testing skill is what separates a junior developer from a dependable one. This course teaches you to write tests that pay for themselves, across every level of the pyramid. You'll start with Jest for unit and integration tests: testing functions and modules, handling asynchronous code, and mocking the things you don't want to hit for real. You'll learn the judgement that matters most — what to test, what not to, and how to write tests that survive refactors. Then you'll move to Cypress to test complete user journeys in a real browser, catching the bugs unit tests can't see. Finally you'll wire the whole suite into a continuous-integration pipeline so it runs automatically on every push and pull request. This is for developers who can build features and now want to make them reliable. By the end you'll have a tested project and a testing approach you can bring to any codebase.
Curriculum
Why and What to Test
- The testing pyramid in practice video · 10:00 ▶ Free preview
- Setting up Jest video · 10:00 ▶ Free preview
- Your first passing test video · 11:00
Unit & Integration with Jest
- Testing functions and modules video · 13:00
- Testing async code video · 13:00
- Mocks, stubs, and spies video · 14:00
- Integration tests that matter video · 13:00
End-to-End with Cypress
- Setting up Cypress video · 11:00
- Testing a real user flow video · 14:00
- Handling flakiness video · 12:00
Testing in CI
- Running tests on every push video · 12:00
- Coverage and quality gates video · 11:00
- Making failures easy to diagnose video · 11:00
Bringing It Together
- Testing a full feature end to end video · 15:00
- A testing checklist you'll reuse video · 09:00
- Next steps video · 07:00