TestStore and snapshot testing #885
-
Looking at the example code in Episode 86, there is a simplified implementation of TCA, via the ComposableArchitecture.swift module. It's not clear why this is necessary, but the API is not the same as the full TCA framework. This alternative implementation seems to provide a facility similar to TestStore, in that it allows for actions to be rooted to the store. The problem is that the type of the TestStore isn't compatible with the store being passed to the view, and there doesn't appear to be a method to produce one that is compatible ( That seems to limit snapshot testing to setting up store state for each intended snapshot, without the ability to then send actions prior to another snapshot. If its just a case of needing to use the simplified implementation in the episode 86 example, perhaps that can be clarified. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This was answered here - #879 (reply in thread) |
Beta Was this translation helpful? Give feedback.
This was answered here - #879 (reply in thread)