All posts

Why should good tests make failures believable?

, 10 min, testing, vitest, playwright

When tests in React Router or TanStack Query fail, I usually inspect my code first. When tests I wrote fail, I sometimes end up re-checking the test itself as well. That difference made me rethink the boundary between unit, integration, browser, and e2e tests.

On this page13
  1. What do you suspect first when a test fails?
  2. Why I started using "Can I trust this failure?" as a test criterion
  3. Why frontend tests so easily get tied to implementation
  4. Why I started seeing integration tests as the default
  5. That does not mean browser tests and e2e disappear
  6. Why browser tests still matter
  7. Why e2e still matters
  8. The boundary I am using for now
  9. Unit
  10. Integration
  11. Browser
  12. E2E
  13. Closing