Files
davideisinger.com/content/notes/good-tests/index.md
David Eisinger a432899f92 Update test note
2023-05-12 23:46:47 -04:00

543 B

title, date, draft
title date draft
Good Tests 2023-05-12T23:40:19-04:00 false
  • Most importantly: give you confidence to make changes
  • You need proper end-to-end testing
    • Set up your data (fresh per test)
    • Visit a page
    • Interact with it
    • Make assertions about the results
  • Put complex logic into easily testable objects/functions
  • Create stub objects to stand in for network calls
  • Avoid over-stubbing/mocking

{{<thumbnail notes "400x" />}}