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

Update to chai 5 and remove karma-chai and karma-sinon #6071

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Conversation

acelaya
Copy link
Contributor

@acelaya acelaya commented Jan 8, 2024

This PR updates to chai 5, by following the same strategy as in hypothesis/frontend-shared#1418, hypothesis/browser-extension#1438 and hypothesis/h#8403

The changes are mainly focused on removing karma-chai and karma-sinon, as these are very outdated dependencies, which main purpose is globally exposing chai.assert and sinon to tests.

This PR does that manually in our bootstrap file, and removes the plugins altogether. That way, karma does not try to load chai as a CommonJS package, since v5 is only ESM.

Copy link
Member

@robertknight robertknight left a comment

Choose a reason for hiding this comment

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

LGTM assuming tests pass.

@acelaya acelaya merged commit 4f1adf0 into main Jan 8, 2024
2 checks passed
@acelaya acelaya deleted the update-chai branch January 8, 2024 15:40
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.

2 participants