RE: https://lascapi.fr/blog/2026/03/02/create-a-local-first-wiki-an-html-editor-designed-for-personal-knowledge-management/

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. :)

Adopting Collective Funds Guidelines 0.1 - Mocha

The Mocha project has adopted the newly created Collective Funds Guidelines 0.1, that it was part in creating, and will going forward apply these best practices to ensure that mai...

docs: adopt Collective Funds Guidelines 0.1 by voxpelli Β· Pull Request #5199 Β· mochajs/mocha

These guidelines were created by us Mocha maintainers with intent of being used for Mocha. When #5197 is merged, do a follow up that adds the collective funds guidelines badge to the README.

GitHub

Published a first draft of Collective Funds Guidelines: https://github.com/collective-funds/guidelines

First user will be Mocha and its inspired by prior art of awesome fellow @openjsf projects @eslint and WebdriverIO πŸ™

Thanks to (in no special order) @JoshuaKGoldberg, @mcollina, @west, @ulisesgascon, @uzlopak, @bcomnes for review, feedback and suggestions that helped shape this πŸ™

#opensource #OpenSourceFunding #opencollective #mochajs

GitHub - collective-funds/guidelines: The Collective Funds Guidelines provides a framework for use of open source funds.

The Collective Funds Guidelines provides a framework for use of open source funds. - collective-funds/guidelines

GitHub

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 

Release v10.4.0 Β· mochajs/mocha

10.4.0 / 2024-03-26 πŸŽ‰ Enhancements #4829 feat: include .cause stacks in the error stack traces (@voxpelli) #4985 feat: add file path to xunit reporter (@bmish) πŸ› Fixes #5074 fix: harden error ha...

GitHub
#16: #mochajs - "A feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple."
@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.
Mochajs test keep running when using async/await

I'm using mochajs to test an express API. I have some async functions because I query a database. I read in this github issue that using async / await should work. However, the test keeps running a...

Stack Overflow