At first this was going to be a migration to elmish-testing-library, but I couldn't figure out how to reliably figure out React component name based on a live DOM element.
So instead I made the tests peek at the ReactElements' innards without rendering them into DOM. Turned out, I don't need elmish-testing-library at all with this approach.
At first this was going to be a migration to
elmish-testing-library
, but I couldn't figure out how to reliably figure out React component name based on a live DOM element.So instead I made the tests peek at the
ReactElement
s' innards without rendering them into DOM. Turned out, I don't needelmish-testing-library
at all with this approach.