Skip to main content
Alvin QuachFull Stack Developer
HomeProjectsExperienceBlog
HomeProjectsExperienceBlog
alvinquach

Full Stack Developer building systems that respect complexity.

Open to opportunities

AQ

Projects

  • All Projects
  • Hoparc Physical Therapy
  • OpportunIQ
  • Hoop Almanac
  • SculptQL

Knowledge

  • Blog
  • Experience
  • Interview Prep

Connect

  • Contact
  • LinkedIn
  • GitHub
  • X

Resources

  • Resume
© 2026All rights reserved.
Back to Blog
February 22, 2026 1 min read

Four-Layer Testing Strategy: Unit to Production

Concept
Depth: ●●○○○
Share:

Unit → integration → edge case → E2E + migration tests with testcontainers. How I test a 256K-line codebase as a solo developer.

The Four Layers

Unit (Vitest): Zod validation, business logic, rate limiter. Integration: Full flow tests — booking lifecycle, payment flow, RLS enforcement. Edge cases: Gift-card double-spend simulation, DST transitions, midnight boundaries, currency rounding. E2E (Playwright): 21 specs with auth fixtures.

Migration Tests

testcontainers spins up real Postgres 15, applies all 52 migrations, verifies tables/indexes/constraints, confirms idempotency. Runs in CI on every push.

Related Projects

T Creative Studio

Share

Share:

Explore more

ProjectsExperienceRequest a call

Importance

★★★★☆