A Gentle Introduction to Dependency Injection

Objective To test applications, We need to ensure that their parts don’t depend on each other, and this principle is the key to it. The objective here is to quickly explain dependency injection and how it can help test without diving too deep into its implementation in programming languages or frameworks. What is …

Spying (On) Methods With Jest

How mocks make it easy to ensure your application logic It’s easy to test your application when your domain layer is decoupled from other: For example, let’s imagine the following scenario: In a Race Game, when the Car hit an obstacle, the player will go back a couple of yards, and the barrier will be …