You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am running into an uncaught exception “Terminating app due to uncaught exception NSInternalInconsistencyException, reason: Current context must not be nil” when snapshot testing a string. The problem only occurs when the test fails. There is no problem at all when recording.
Expected behavior
Maybe I am missing something fundamental in the new snapshottesting setup, but this should not crash and I should get a diff in Xcode.
Hi @jcubit, thanks for the report! There's definitely something to fix here, and not sure how we missed it. There's a chance something changed between the Xcode 16 beta and final release. But either way, #916 will fix it.
Describe the bug
I am running into an uncaught exception “Terminating app due to uncaught exception
NSInternalInconsistencyException
, reason:Current context must not be nil
” when snapshot testing a string. The problem only occurs when the test fails. There is no problem at all when recording.This is not an async test.
To Reproduce
Fresh new project
Expected behavior
Maybe I am missing something fundamental in the new snapshottesting setup, but this should not crash and I should get a diff in Xcode.
Screenshots
Similar screenshot as in #875
Environment
Additional context
This is not an async test, so #822 and #875 solutions do not apply here
Thank you in advance for looking into this!
The text was updated successfully, but these errors were encountered: