Git

Getting geeky with Git #5. Improving merge workflow with rebase

This entry is part 5 of 5 in the Getting geeky with Git

Merging is not the only utility that can integrate changes from one branch onto another. In this article, we look into rebasing and learn how we can use it as an alternative to merging. The basics of rebasing In the previous part of this series, we’ve learned that merging can result in an additional merge commit. This […]

Git

Getting geeky with Git #4. Fast-forward merge and merge strategies

This entry is part 4 of 5 in the Getting geeky with Git

When working with branches, we often need to synchronize our changes. When doing so, we can implement different approaches. In this article, we explain how merging works and discuss various situations. During that, we will touch on the subject of the fast-forward merging and different merge strategies. The basics of merging The job of the   command […]

Express JavaScript NestJS Testing TypeScript

API with NestJS #9. Testing services and controllers with integration tests

This entry is part 9 of 10 in the API with NestJS

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 how they differ from unit tests. We write a few of them using Jest to test our services. We also look into the SuperTest library to test our controllers. […]

JavaScript NestJS TypeScript

API with NestJS #8. Writing unit tests

This entry is part 8 of 10 in the API with NestJS

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 application by writing unit tests. We do so by using some of the utilities built into NestJS, as well as the Jest library. If you would like to get […]

Express JavaScript NestJS TypeScript

API with NestJS #6. Looking into dependency injection and modules

This entry is part 6 of 10 in the API with NestJS

NestJS strives to focus on the maintainability and testability of the code. To do so, it implements various mechanisms such as the Dependency Injection. In this article, we inspect how NestJS can resolve dependencies by looking into the output of the TypeScript compiler. We also strive to understand the modular architecture that NestJS is built […]