DIKit icon indicating copy to clipboard operation
DIKit copied to clipboard

Add a cleanup method to destroy the dependency context (for unit tests)

Open werner77 opened this issue 4 years ago • 1 comments

For testing it's convenient to be able to destroy the context after each test and set it up before.

werner77 avatar Apr 24 '20 07:04 werner77

Can be as easy as:

extension DependencyContext {
    static func destroy() {
        self.root = nil
    }
}

werner77 avatar Apr 24 '20 07:04 werner77