So in my case, I set the context when initializing the DataManager
case .testing:
let persistentStore = PersistentStore(inMemory: true)
self.managedObjectContext = persistentStore.context
I could intialise the datamanager in the setUp. EDIT: no difference. Not sure how else to set up the context.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: