API with NestJS #168. Integration tests with the Drizzle ORM
Briefly

Writing tests for our application ensures reliability, but unit tests are not enough; integration tests are crucial to verify how different parts of the system work together.
Integration tests check the interaction between components; for example, testing whether the AuthenticationService correctly hashes a password and returns a user account as expected.
While unit tests evaluate individual units, integration tests are essential for exposing the potential issues between interacting components, ensuring the system operates smoothly as a whole.
To conduct effective tests, we must avoid using the actual database and mock dependencies, such as the bcrypt hashing library, to provide consistent results in our tests.
Read at Marcin Wanago Blog - JavaScript, both frontend and backend
[
|
]