Skip to content
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

🐛 Bug: https://mochajs.org/example/tests now has 'expect is not defined' failures in all tests #5244

Closed
JoshuaKGoldberg opened this issue Nov 6, 2024 · 0 comments · Fixed by #5245
Assignees
Labels
area: website involving mochajs.org, but not necessarily involving docs status: accepting prs Mocha can use your help with this one! type: bug a defect, confirmed by a maintainer

Comments

@JoshuaKGoldberg
Copy link
Member

https://mochajs.org/example/tests

Screenshot of a Mocha browser test report showing 'ReferenceError: expect is not defined' for all tests

In the browser console, we get:

Uncaught SyntaxError: Unexpected token 'export'
tests:28 Uncaught ReferenceError: chai is not defined
    at tests:28:13

Looks like this is from https://unpkg.com/chai/chai.js bringing in the latest Chai versions that only support ESM.

@JoshuaKGoldberg JoshuaKGoldberg added area: website involving mochajs.org, but not necessarily involving docs status: accepting prs Mocha can use your help with this one! type: bug a defect, confirmed by a maintainer labels Nov 6, 2024
@JoshuaKGoldberg JoshuaKGoldberg self-assigned this Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: website involving mochajs.org, but not necessarily involving docs status: accepting prs Mocha can use your help with this one! type: bug a defect, confirmed by a maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant