Testing Logic and Pure Functions

Testing Logic and Pure Functions

This site is all about testing frontend apps, so at first you might think that I focus just on what renders on the page, interactivity like clicking, and just generally how things look.

But that is just the UI part of an application - it is almost guaranteed that you have some kind of business logic, calculations, and simple pure functions.

In this lesson I'll go over my approach to testing them so that your tests:

  • give you confidence they're working
  • don't under-test, don't over-test
  • and how to catch edge cases

Loading full lesson...

Share this lesson with your teamTweet (X) it

Invite a teammate to learn with you by sharing this lesson or dropping the link in your team chat.