Step-by-step: Building a Node.js server (2021 edition) — Part 4/4 - Testing
If you want to use the server starter directly without going through the tutorial, find the code on Github. Link to the next parts are at the bottom of this page. In Part I to III we built a generic server with the help of Koa.js, GraphQL, MongoDB and Docker. Let’s add some tests with Mocha to make sure we don’t introduce regressions when we add more code. Requirements: Understanding why testing is important (😉). ...