Skip to content

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.

@linux-foundation-easycla
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
@koddsson koddsson deleted the patch-1 branch October 14, 2024 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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