Hi all,
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 AppM
to Aff
, then run using the runUI
function.
I am looking for something similar buf for unit tests. I would like the tests not to run on top of Aff
or 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?