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
classDemoTests:XCTestCase{func test_crash(){letmock=Mock<Query>(dogs:[])DogsQuery.Data.from(mock).dogs // ok
mock.dogs =[Mock(id:"dog-1")]
// Thread 1: Fatal error: Dog expected data for entity.
DogsQuery.Data.from(mock).dogs // crash
}}
Further details
Released version 1.0.1 does not have this problem
The text was updated successfully, but these errors were encountered:
Oooof. This must have regressed when I fixed the other crash. I thought we have a test for this, but I will check again and fix this before the 1.0.2 release! Thanks for the report.
Aside from this issue, I'd love to hear feedback on how your experience with Test Mocks has been so far.
Bug report
Test Mocks: Crashes when touching array of object (Reproduced in main branch)
Versions
apollo-ios
SDK version: main (1045d8c)Steps to reproduce
1. Generate schema and test mocks
schema
query
2. Run tests
Further details
1.0.1
does not have this problemThe text was updated successfully, but these errors were encountered: