
This course contains the use of artificial intelligence.
"You have to relearn testing for every language"—this course shatters that assumption.
The real reason developers struggle with automated testing is that they rely on rote memorization of framework APIs. Mocks that don't take effect, Promises or async that won't resolve with fake timers, mocks leaking into the next test—these problems stem from exactly the same misunderstanding of mechanisms in both `pytest` and `Vitest`. Conversely, once you grasp those mechanisms, you'll be able to diagnose the cause the moment you see an error message, regardless of the language.
This course consists of 100 hands-on exercises: 50 for pytest (Python) and 50 for Vitest (TypeScript). These two sets of 50 are not a random collection. They follow the same roadmap in parallel across two languages: "first assert → equality and exceptions → parametrize/each → fixtures → mock three-layer reset → async and fake timers → files and in-memory SQLite → HTTP API (FastAPI / Hono) → snapshots → coverage thresholds, TDD, and pseudo-CI." A concept you understand in one language instantly clicks as a "dialect" in the other—this back-and-forth cultivates a "test design ability" that memorization alone can never achieve.
You can start from either side. Python developers can begin with the pytest track and discover "So this is how JavaScript mocks work" in the Vitest track. Frontend/Node.js developers can start with the Vitest track and confirm "The fixture design philosophy is the same" in the pytest track. By the time you've completed both, you're no longer just a user of a specific framework—you've become someone who understands the discipline of testing itself.
The content goes well beyond basics. Both tracks cover: temporary file I/O, the repository pattern with in-memory SQLite, HTTP API testing (FastAPI + TestClient on the Python side, Hono + zod on the TypeScript side), swapping mocks via dependency injection, snapshots, coverage threshold gates, and building TDD and pseudo-CI from specifications—all practical material you can take straight to production.
Learn in your browser using Google Cloud Shell. Upload the supplied ZIP and run its setup script; no local Python or Node.js installation is needed. A Google account with verified age 18 or above is required. The free allowance is 50 hours per week and 5 GB home storage. The home directory may be deleted after 120 days of inactivity, so download backups. Local Python 3.12 or newer and Node.js 24 are alternatives. Follow the new opening material guides in place of the CodeSandbox steps in the videos.
Not just learning to write tests, but learning to design tests across languages—that is the goal of this course.