Test Node.js Backends

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

Instructor

Kent C. Dodds

Kent is a JavaScript developer who likes open source and teaching.

He is currently working for himself as a full-time educator. Before going full-time on education, Kent worked at PayPal. During his time there he represented the company on the TC39 committee and started several Open Source projects, notably glamorous💄, downshift 🏎️ and dom-testing-library 🐙.

Course content (40 lessons)

    illustration for Test Node.js Backends