Skip to main content

Introduction

Adapters: Bridging Frameworks and Dependency Injection

Automock's core strength lies in its consistent logic and approach to automating mock object creation. However, the diverse landscape of Dependency Injection frameworks, each with its unique intricacies, presents a challenge. To address this, Automock introduces the concept of "Adapters."

Automock Adapters are tailored connectors designed specifically for different DI frameworks. They ensure seamless integration, optimal performance, and a harmonized testing experience across various contexts. Whether it's the nuances in how dependencies are registered, the methods of resolution, or the specific annotations and decorators unique to a framework, Automock Adapters adeptly handle these details.

Supported DI Frameworks

DI Framework AdapterJest (@suites/jest)Sinon (@suites/sinon)
NestJS Adapter (@suites/di.nestjs)
Inversify Adapter (@suites/di.inversify)✅ (Beta)✅ (Beta)
TSyringe Adapter (@suites/di.tsyringe)Contributions are Welcome 🙏
Ts.ED Adapter (@suites/di.tsed)Contributions are Welcome 🙏
TypeDI Adapter (@suites/di.typedi)Contributions are Welcome 🙏