Testing
Unit, integration, e2e, Jest, Vitest, mocking, fixtures
10 articles
Integration tests with the Drizzle ORM
Writing tests for our application helps ensure it works as intended and is reliable. So far, we have written unit tests for our NestJS application that uses…
Unit tests with the Drizzle ORM
Unit tests play a significant role in ensuring the reliability of our NestJS application. In this article, we’ll explain the concept behind unit testing and…
Unit tests with PostgreSQL and Kysely
Creating tests is essential when trying to build a robust and dependable application. In this article, we clarify the concept of unit tests and demonstrate how…
Integration tests with Prisma
In the previous part of this series, we learned how to write unit tests in a NestJS project with Prisma. Unit tests help verify if individual components of our…
Writing unit tests with Prisma
Covering our NestJS application with unit tests can help us create a reliable product. In this article, we introduce the idea behind unit tests and implement…
Running unit tests with CI/CD and GitHub Actions
We should closely monitor the state of tests in our NestJS application. In a few previous parts of this series, we’ve used Docker and GitHub actions to design…
Testing a project with raw SQL using integration tests
Covering our project with tests can help us ensure that our application works as expected and is reliable. While unit tests play a significant role, they are…
Writing unit tests in a project with raw SQL
Writing tests is crucial when aiming to develop a solid and reliable application. In this article, we explain the idea behind unit tests and write them for our…
Testing services and controllers with integration tests
In the previous part of this series, we’ve focused on unit tests. This time, we look into integration tests. In this article, we explain their principles and…
Writing unit tests
Testing our application can increase our confidence when it comes to creating a fully-functional API. In this article, we look into how we can test our…