Skip to content
New issue

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

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

Already on GitHub? # to your account

docs: pin chai to version 4 in browser example #5230

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

koddsson
Copy link
Contributor

@koddsson koddsson commented Oct 13, 2024

PR Checklist

Overview

I pinned chai to version 4 in the browser example. Since chai@5, the assertion library is distributed as a JavaScript module and doesn't add methods to the global scope. By pinning the version to the previous version 4 we make sure that the example still works.

We could update the example to use chai@5 as a module but I figure this would be a quick fix to the issue.

Copy link

linux-foundation-easycla bot commented Oct 13, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

@JoshuaKGoldberg JoshuaKGoldberg changed the title Pin chai to version 4 in browser example docs: pin chai to version 4 in browser example Oct 13, 2024
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Thanks!

@JoshuaKGoldberg JoshuaKGoldberg merged commit 97af04f into mochajs:main Oct 13, 2024
3 of 6 checks passed
@koddsson koddsson deleted the patch-1 branch October 14, 2024 09:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

📝 Docs: provided chai library for browser does not work
2 participants