Skip to content

1.0.2

Compare
Choose a tag to compare
@MaximBazarov MaximBazarov released this 18 Oct 13:18
· 8 commits to main since this release
ec75006

Dependency.override(_:) is now public so it's possible to override dependency in your production code like _someService.override(SomeService()).

It's particularly useful if you want to open the specific injections in your tests for something otherwise global.

E.g you have something that depends on a global storage, and you don't want to make your code passing storage around to maintain it.
You can use override in your tests for this injection point specifically.