-
-
Notifications
You must be signed in to change notification settings - Fork 693
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-spies broken in v5.1.0 #1610
Comments
iampava
changed the title
Upgrade to ES Modules have broken chai-spies
Upgrade to ES Modules has broken chai-spies
Mar 4, 2024
iampava
changed the title
Upgrade to ES Modules has broken chai-spies
chai-spies broken in v5.1.0
Mar 4, 2024
this is most likely caused by #1569 you can do: import * as chaiModule from 'chai';
const chai = chaiModule.use(chaiSpies); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code fails when using:
chai
: 5.1.0chai-spies
: 1.1.0The error is:
TypeError: chai.spy is not a function
However, if I downgrade to
v4.3.10
and use CJS with the following code:It works.
The text was updated successfully, but these errors were encountered: