Avoiding Global State - Real Example with Passport.js
28 Jul 2020 - JavaScript, TypeScript, Jest
Here is a quick example about issues created by global states in software.
Here is a quick example about issues created by global states in software.
You might encounter some issues while trying to override singletons from TSyringe in Jest tests. Here is a quick post to help you to fix them.
Let’s discuss dependency hell when mocking Node module with Jest while using Yarn as the package manager.