#Testing

18 posts

Testing #3: React Testing Library — See Like a User
10 min read

Testing #3: React Testing Library — See Like a User

RTL's philosophy and your first component test. Where render and screen fit, the priority order of queries like getByRole/getByLabelText/getByText, why you don't reach for querySelector, and how jest-dom matchers help.

Testing #2 — Vitest Setup and Your First Unit Test (describe / it / expect)
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.

Testing #1 — Why Test? The Place of Unit, Integration, and E2E
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.

Angular Intermediate #7: Testing — TestBed and Component Tests
10 min read

Angular Intermediate #7: Testing — TestBed and Component Tests

Verifying Services and components with Angular's standard test environment, TestBed, plus mock injection, the HttpTestingController pattern, and ComponentHarness.

Go Practice #6 Testing and Deployment — httptest and Docker
6 min read

Go Practice #6 Testing and Deployment — httptest and Docker

Handler tests with httptest, integration test patterns, Docker multistage builds, and a small operations checklist.

Go Intermediate #6 Testing — testing Package and Table-Driven
7 min read

Go Intermediate #6 Testing — testing Package and Table-Driven

Writing unit tests and benchmarks with Go's standard testing package, and the table-driven test pattern that's standard in Go code.