Could anybody point me so some resources or code examples of testing a Halogen App with custom test monad?
Many tutorials explain how to use an app monad (
AppM) with Halogen. The
AppM would usually implement the effects required in the app on top of the
Aff monad. Before running, the resulting component is hoisted from
Aff, then run using the
I am looking for something similar buf for unit tests. I would like the tests not to run on top of
Effect, but rather on top of a custom
TestM monad. I could then hoist the component from type
Component query input output TestM to lets say
Component query input output Identity, but the question is what then? How can I run the
Component query input output Identity component. Or how could I run the
HalogenM state action slots output Identity a monad?