Skip to content

🚀 Feature: Add example of usage in a CommonJS project with Chai 5.x (ESM-only) #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JoshuaKGoldberg opened this issue Jan 21, 2024 · 2 comments
Labels
status: accepting prs Please, send a pull request to resolve this! 🙏 type: feature New feature or request

Comments

@JoshuaKGoldberg
Copy link
Member

JoshuaKGoldberg commented Jan 21, 2024

Following #75 -> #76: Chai 5.x is ESM-only and folks are asking about it (mochajs/mocha#5073). We should add an example or two showing how to use Mocha in a CommonJS project with ESM dependencies such as Chai.

Edit: chaijs/chai#1575 has an example of it working, fyi.

@compwron
Copy link

I am interested in this :)

@JoshuaKGoldberg
Copy link
Member Author

@compwron still interested?

I sent #106 -> #107 for native require(ESM) support, but I think folks stuck on older Node.js versions would still be benefitted by an example showing how to do it.

@JoshuaKGoldberg JoshuaKGoldberg added type: feature New feature or request status: accepting prs Please, send a pull request to resolve this! 🙏 labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepting prs Please, send a pull request to resolve this! 🙏 type: feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants