Loading

To use DOM Testing Library with Mithril, we’ll write a custom render function which mounts a mithril component and then utilize the getQueriesForElement function on the container where it’s been mounted. Mithril is unique in how it re-renders so we’ll use dom-testing-library’s wait function for our assertions.

Transcript