#Unit Test
2 posts
5 min read
Testing #2 — Vitest Setup and Your First Unit Test (describe / it / expect)
Wire Vitest into a project and write your first test against the simplest possible function. The Jest comparison takes one paragraph — the real focus is the meaning of describe/it/expect, watch mode, where vitest.config.ts lives, and the small wrinkles between your first failure and your first pass.
5 min read
Testing #1 — Why Test? The Place of Unit, Integration, and E2E
The first post of the testing track. The meaning of the test pyramid, what unit/integration/E2E each catch and miss, and how the question "where to use which test" ultimately becomes a question of how to allocate your time — this post sets up the picture you need to design that allocation.