Unit Testing in Nestjs - The Complete Guide
Haider Malik
2:55:24
Description
Learn Unit Testing with NestJs, Jest, GraphQL, Prisma, and Postgres
What You'll Learn?
- Build CRUD REST APIs with Nestjs, Postgres
- Learn Unit Testing with Jest, Nestjs, and Postgres
- Mocking in Jest Framework
- Test the GraphQL and Prisma based API
- Learn how to write unit test for CRUD GraphQL based APIs
- Learn how to run native SQL queries in NestJs
Who is this for?
More details
DescriptionTest-driven development is a powerful tool for preventing bugs within your application. NestJs Unit testing is the method of testing small pieces of code/components in isolation in your NestJS application. This helps in improving the code quality and helps in finding bugs early on in the development life cycle. This also provides an added advantage to the users in the way that they can add any new features without breaking any other part of their application.
Why Unit Testing?
* It helps you to write better codeâ¨
* It enables you to catch bugs earlierâ¨
* It makes your code easy to refactorâ¨
* It makes you more efficient at writing codeâ¨
We are going to use the Jest framework in this course. Jest is an open-source Javascript testing framework developed by Facebook. It was mainly built for React, Node, Babel, TypeScript, Angular, Vue, and JavaScript-based applications. It primarily focuses on simplicity and support for large web applications. Jest was built on top of Jasmine with multiple layers.
In this course, We are going to build two different applications. In the first application, we are going to build the CRUD(create, read, update, delete) endpoints using Nestjs, and Postgres without TypeORM
â¨
In the next part, we are going to test GraphQL and Prisma API. IÂ will teach you how to write unit tests using the Jest framework. You will also learn mocking in Jest and much more.
Who this course is for:
- NestJs developers who want to learn how to do unit testing
- NodeJs developers who want to learn how to do testing in Typescript and Jest
- NodeJs developers who want to learn the Jest Framework
Test-driven development is a powerful tool for preventing bugs within your application. NestJs Unit testing is the method of testing small pieces of code/components in isolation in your NestJS application. This helps in improving the code quality and helps in finding bugs early on in the development life cycle. This also provides an added advantage to the users in the way that they can add any new features without breaking any other part of their application.
Why Unit Testing?
* It helps you to write better codeâ¨
* It enables you to catch bugs earlierâ¨
* It makes your code easy to refactorâ¨
* It makes you more efficient at writing codeâ¨
We are going to use the Jest framework in this course. Jest is an open-source Javascript testing framework developed by Facebook. It was mainly built for React, Node, Babel, TypeScript, Angular, Vue, and JavaScript-based applications. It primarily focuses on simplicity and support for large web applications. Jest was built on top of Jasmine with multiple layers.
In this course, We are going to build two different applications. In the first application, we are going to build the CRUD(create, read, update, delete) endpoints using Nestjs, and Postgres without TypeORM
â¨
In the next part, we are going to test GraphQL and Prisma API. IÂ will teach you how to write unit tests using the Jest framework. You will also learn mocking in Jest and much more.
Who this course is for:
- NestJs developers who want to learn how to do unit testing
- NodeJs developers who want to learn how to do testing in Typescript and Jest
- NodeJs developers who want to learn the Jest Framework
User Reviews
Rating
Haider Malik
Instructor's Courses
Udemy
View courses Udemy- language english
- Training sessions 19
- duration 2:55:24
- Release Date 2022/12/11