Node.js / Testing

May 4, 2019 ยท View on GitHub

Unit testing

What to test?

The aim is to test everything with extra attention to:

  • conditionals (both sides),
  • mocked API requests,
  • exports.