-
Notifications
You must be signed in to change notification settings - Fork 109
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
Chai v5 support #281
Comments
I have the problem too. @domenic -> if you have no bandwidth to maintain, let's talk |
Also note that chai.use() doesn't currently work without a code change: chaijs/chai#1569 |
node version - v16.19.1 when updated the package dependencies for chai to 5.0.0 its not longer working.
|
See also: chaijs/chai#1570 |
|
Hope you noticed that the last commit at this repository is 6 years ago. |
Is there any alternative to this library? |
|
I got desperate enough to fork and fix, https://github.com/rvagg/chai-as-promised, |
Just in time |
As long as there are no breaking changes somewhere, you can simply add
This approach is giving us often a bit time for either finding a maintained replacement or forking + maintaining on our own or for entirely cleaning up an unmaintained dependency. More freedom temporarily ... Finally and just for reference, I had to migrate our tests to:
Hope this helps. Worked like a charm. |
FYI 7.1.2 resolves the peer dependency issue 8.0.0 is on the way and will be esm-only like chai itself closing since the 7.1.2 release should solve this issue for now. |
The current peerDependencies version range forbids installing chai-as-promised with chai v5:
Release notes: https://github.com/chaijs/chai/releases/tag/v5.0.0
The text was updated successfully, but these errors were encountered: