Skip to content

📝 Docs: Explicitly document how to work with Node loader/import/require flags #5087

Open
@JoshuaKGoldberg

Description

Documentation Request Checklist

Overview

Collecting user questions from #5002 & #5047 & linked: it's not clear in the Mocha docs how to use it in conjunction with Node.js --(experimental-)loader (deprecated), --import, and/or --require. I think it'd be good to put a docs guide somewhere. This area of user questioning has become much more relevant over the last few years as ESM's gotten more popular. Folks writing TypeScript more and more has been a factor too.

Additional Info

mochajs/mocha-examples#76 will help but is really only part of the way.

I'm not sure exactly where to put these docs 🤔. Something to think about once start to look at the website more critically.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions