
Introduction
Review the project that will serve as the basis for our tests
Setup MongoDB on atlas and get connection string t use in APP
Validate APIs using Postman to ensure response and understanding
Using Supertest and Jest, we write our first test
Handle cases where you'll need some functions to run before your test suite
Write test to use Supertest to validate user token, retrieve user data and validate the user information using Jest
Validating a post request without auth token
Using Supertest to validate token and use it to make a post request that is validated with Jest
Brand new course that was created out of my personal experience looking for a detailed and short course on automated testing in ExpressJS applications. Preparing for interviews and solving recruitment tasks for your next job have never been easier as this course provides real world examples that will support the codes you have written and provide concise examples of how you can write test suites for you code to make it stand out. For any intermediate / senior backend developer role, its expected you have good coding practice including writing test cases for your code. Since most web applications are build off REST APIs, This course have been modelled around expressJS APIs that were built for an e-commerce application.
The primary goal of this course is to help software developers set up test suites for their APIs. As said above, for this to be possible, we provide the code to the backend of an expressJS application. You will set up your own mongoDB database and connect the application to the database. Afterwards, we validated the APIs using postman. Thereafter, we use Supertest and Jest to test this APIs and create test suites. We also made sure we handle tests for APIs that need authorization tokens as this is the situation with real-world applications that you will be building or working on.
Once again, the course is concise and provides you with the tools to write test suites for your application. it gives you opportunity to standout during recruitment processes and also provides you with the tools to impress your employers while write good code and maintain them