pointfreeco / swift-snapshot-testing

📸 Delightful Swift snapshot testing.
https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing
MIT License
3.68k stars 556 forks source link

Register test observer in main queue #834

Closed MarkVillacampa closed 3 months ago

MarkVillacampa commented 4 months ago

Fixes a crash when calling [XCTestObservationCenter addTestObserver:] that would fail an assertion: 'Test observers can only be registered and unregistered on the main thread.'

Fixes: https://github.com/pointfreeco/swift-snapshot-testing/issues/661