Testing & Debugging
15 projects
Hands-on projects for testing & debugging.
- 1
Unit Test Suite for a Math Utility
Build a complete unit test suite for a math utility module using Jest.
Beginner ~30 min - 2
Mocking External Dependencies Practice
Learn to mock API calls and database access in unit tests.
Easy ~40 min - 3
TDD Practice: Build a String Formatter
Use Test-Driven Development to build a string formatter step by step.
Easy ~35 min - 4
Snapshot Testing for Configuration Objects
Use snapshot testing to lock down configuration object shapes.
Easy ~25 min - 5
Testing Asynchronous Code
Write tests for async functions using async/await, promises, and callbacks.
Medium ~40 min - 6
React Component Testing with Testing Library
Test React components using React Testing Library and Jest.
Medium ~50 min - 7
Integration Testing with a Real Database
Write integration tests that verify code works with a real in-memory database.
Medium ~45 min - 8
End-to-End Testing with Playwright
Write E2E tests for a web application using Playwright.
Medium ~55 min - 9
Coverage Analysis and Gap Filling
Analyze test coverage reports and fill coverage gaps with meaningful tests.
Medium ~40 min - 10
CI Pipeline with Automated Tests
Set up a GitHub Actions CI pipeline that runs tests on every push.
Medium ~45 min - 11
Advanced Unit Testing Patterns
Master advanced unit testing โ parameterized tests, custom matchers, setup/teardown hooks, and testing edge cases systematically.
Medium ~40 min - 12
Advanced Mocking Techniques
Master advanced mocking โ partial mocks, mock factories, spying on methods, and mocking modules with jest.mock. Practice isolating code from its dependencies.
Medium ~45 min - 13
TDD Kata: FizzBuzz and Beyond
Practice Test-Driven Development through coding katas. Write the test first, watch it fail, write minimal code to pass, then refactor.
Medium ~40 min - 14
Coverage-Driven Testing
Use coverage reports to find untested code paths. Practice writing targeted tests to close coverage gaps and achieve high branch coverage.
Medium ~40 min - 15
E2E Test Suite Design
Design a complete E2E test suite for a web app using Playwright. An open-ended project covering page objects, fixtures, parallel execution, and visual testing.
Medium ~60 min