Allow @testable to also prefix extension

Would it make sense to allow @testable to also prefix extension? The testable extension would have access to private declarations in the origin, as if it was written in the same file. The testable extension would only be available in a test environment.

This way I could easily create an extension in my tests that could e.g. reinitialise a singleton while keeping the integrity of the project code.

Terms of Service

Privacy Policy

Cookie Policy