-
Notifications
You must be signed in to change notification settings - Fork 534
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
chore(deps): update dependency chai to v5 #2070
chore(deps): update dependency chai to v5 #2070
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2070 +/- ##
==========================================
- Coverage 90.97% 90.63% -0.34%
==========================================
Files 146 146
Lines 7492 7488 -4
Branches 1502 1494 -8
==========================================
- Hits 6816 6787 -29
- Misses 676 701 +25 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, but I have a Q.
https://github.com/chaijs/chai/releases/tag/v5.0.0
- chai@5 is now ESM only. IIUC, the
commonjs()
plugin in "web-test-runner.config.mjs" is converting the test/foo.test.ts from TypeScript to CommonJS to ESM before executing the test, so ... using an ESM-only test lib works. TIL. - chai@5 release notes say it drops support for Node.js less than 18. Currently browser tests are run with node v16. Is this a potential problem?
Oh yes, you're right. That's a problem, we shouldn't update this as it'll likely bite us later. Unfortunately we'd need to update webpack to use Node 18. We've done it in core so I know that it can work. 🤔 I think the only reason we use webpack in this repo is because our tests use Unfortunately I don't have deep knowledge of the tooling and no time to dig into it so I cannot help the author along in #2005 at the moment. I'll close this PR until we find time to sort it out. |
update chai to v5, adapt tests.
Replaces #2013