#mochajs — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #mochajs, aggregated by home.social.
-
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. :)
-
Did my first #npmRelease of #MochaJS. Version 10.4.0 is now available, including some features and some fixes: https://github.com/mochajs/mocha/releases/tag/v10.4.0
Great collaboration with @JoshuaKGoldberg and @uzlopak as well as with the individual contributors.
Next up I hope to pick up the pace of my contributions on this project, but first I have some standard linting to enhance :BlobhajHeart:
-
@TheRealPomax I’m still a fan of #MochaJS with #Chai assertions. Jest requires to much to get it to work with modern #JavaScript development practices, it doesn’t even work well with #TypeScript and #ESModules.