Skip to content

Unit Tests

Imogene McDonald edited this page Jan 21, 2021 · 9 revisions

The goal of writing tests is to make sure a user will be able to use the application properly. In determining what to test, think about the observable effect that code has for the end user and developer user.

What we unit test

  • It renders correctly
  • The states
  • The events
  • Other interactive features
  • Expected errors given something illegal

What we don't unit test

  • Implementation details that don't affect user functionality
  • Things that we didn't create, like anything third-party

Helpful articles: