Master the art of writing a full CRUD REST API using Node.js, Express, and Jest with the test-driven development (TDD) method! TDD is rapidly becoming a standard in software development for its ability to ensure safe and secure changes without breaking existing functionality. Manual testing is unsustainable for medium to large applications and can be extremely tedious.
Course Overview
Without TDD, changes can lead to unintentional breakages as developers hesitate to modify existing code. With TDD, you gain the confidence to execute significant code refactoring and clean-ups without fear. This course will guide you step-by-step in creating a REST API using Express with unit and integration tests powered by the Jest framework. You will have multiple opportunities to engage in hands-on exercises to enhance your learning.
Instructor Support
If you have any questions or suggestions regarding the course, feel free to reach out. I enjoy interacting with my students and am here to help you succeed!
Target Audience
- Students familiar with Node.js seeking to create production-ready software using TDD
Course Requirements
- Basic knowledge of JavaScript ES6
- Some familiarity with Node.js Express is beneficial
Learning Objectives
What you'll learn:
- How to create unit tests
- How to perform integration tests
- How to build an Express REST API from scratch
- How to develop an Express REST API using test-driven development
- How to mock Mongoose models in Node.js with Jest
- How to leverage Jest with TDD to build a REST API
- How to integrate MongoDB with Mongoose and Jest tests
- How to write tests for error handling