<aside> 💡 A useful cheat sheet: https://github.com/sapegin/jest-cheat-sheet

</aside>

Tests to Include

Express

Unit Tests

API Mocking

React

Unit Tests

Snapshots

Function Mocking

Toolset

The tools we are using are:

  1. Jest: test runner, assertion library, and mocking library

    Test runner: picks up the test files and runs them

    Assertion library: verifies the results of a test

    Mocks: used in unit testing to wrap a function

  2. Enyzme: test utility that extends Jest and makes it easier for frontend

    Focuses mainly on rendering components and retrieving values