Closed LucasVanDongen closed 6 months ago
May need versions of Xcode, Factory, etc. Not seeing this in demo tests...
@MainActor
final class FactoryDemoTests: XCTestCase {
private let container = Container.shared // Here's the warning
override func setUpWithError() throws {
container.manager.reset()
}
After setting "Swift Concurrency Checking" to complete, I started getting warnings accessing the shared Container in my tests:
Reference to class property 'shared' is not concurrency-safe because it involves shared mutable state
Relevant code:
Is there a smart way around this? I just need to manually wipe and re-register my dependencies every time a test runs