Hello there.
I searched through the documents but I couldn’t find an answer to my question there.
Context: I have a class that has a function that subscribes to collection changes on a specific realm. The result is transformed and stored in a CurrentStateSubject
so I can subscribe to that and get all updated objects from the Realm whenever something changes.
Everything’s working fine.
Now I want to test that code. I use an in-memory Realm to test that functionality. The in-memory realm is also receiving the object but the subscription is not working/firing.
Question: Does the in-memory Realm allow subscriptions and does it actually send updates?
If not: How am I suppose to test that? Creating a realm and deleting it from the file system seems a bit strange to do in a test.
Thanks