Hi! A big #question for #webdev
// Context: a #Tauri application written in plain #JavaScript.
I used the #DOMParser to read an HTML file and display it as #Markdown.
For unit testing, I use #MochaJs, and I wanted to run the tests in the command line interface (CLI) with #nodejs.
However, Node.js does not have the DOMParser library. :/
I then used jsdom to develop the function in a behaviour-driven development style, but this cannot be run in a browser.
I now realise that trying to test this functionality in this way is not a good idea.
What can I use instead? ??
You're welcome to #boost or ask for clarifications. :)

