kohesive / injekt

Dependency Injection for Kotlin
MIT License
235 stars 20 forks source link

clear Injekt #38

Open pbochenski opened 7 years ago

pbochenski commented 7 years ago

Hi, during development I've encountered that overriding singletons is not possible (like shown here )

This came out in unit tests, where different tests needs to have different stubs. It would be nice to have feature either to clear all objects/factories from Injekt before every test, or to override certain singletons.

What do you think?