I have a viewFunc that returns some HTML. I would like to validate its return value. I wrote a test case using elm-test.
viewFunc |> Expect.equal (span [] [ text "hello world"])
It works well as long as my test case passes. However, when it fails, I get the following error:
<internals>
╷
│ Expect.equal
╵
<internals>
It's not helpful at all. How could I have a more meaningful error message? Is there a way to stringify Html nodes? I looked around in the documentation of elm-html but haven't found anything.