1.0.2
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.