illustration for Test Node.js Backends

Test Node.js Backends

Instructor

Kent C. Dodds
2h 21m
214
people completed
Bookmark
Download
RSS

Backends hold so much of our application's business logic that is often used to support multiple clients (web, mobile, and other native platforms). This logic is critical to get right and deploying a breaking change to this can be devastating to your company's goals (not to mention the bottom-line). Increasing your "deployment confidence" is crucial and automated testing is the best way to do that.

As Node.js continues to grow in usage around the world, learning how to test this mission-critical code in a way that increases developer velocity as well as confidence becomes increasingly important. In this workshop we use an Express.js example and focus on the patterns and practices that you need to learn so you can apply what you learn to test your code written in any Node.js web framework.

You'll learn:

  • Testing Pure Functions
  • Testing Middleware
  • Testing Controllers
  • Testing API routes
  • Mocking third party dependencies
  • Testing authenticated code

Course Content

2h 21m • 40 lessons