-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using Mocker in combination with SwiftUI and Snapshot testing #159
Comments
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days. |
@AvdLee ? |
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days. |
Still relevant |
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days. |
Still relevant |
I'm trying to use Mocker in combination with SwiftUI and Snapshot testing.
I'm using Xcode assets symbol generation to get my images from the asset catalogue:
Image(.myLogo)
When I snapshot a SwiftUI view thats uses this image, all goes well, but when I use
Mocker
to mock some other requests in some other tests. The resulted snapshot shows me a cross instead of the image:And my error log tells me:
Setting the mode to opt-in fixes this:
Mocker.mode = .optin
But shouldn't be necessary. Did somebody see this before?
The text was updated successfully, but these errors were encountered: