-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 Cypress to use Chai 4.0 instead of 3.5 #1153
Labels
type: feature
New feature that does not currently exist
Comments
Covered by #2529 |
Hi @jennifer-shehane , I am using [email protected] and still getting the same error |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is this a Feature or Bug?
Feature
Current behavior:
There have been some new methods that were introduced to Chai between 3.5 & 4.0, but Cypress still uses 3.5. Current version of Chai 4.1.2 and have some more bug fixes and ES6 fixes.
Desired behavior:
Ability to use updates in Chai 4.0:
ordered
assertion:to.have.ordered.members
expect(true).to.be.ture; // Oops, typo, now Chai will throw an Error
expect(false).to.be.fals; // Error: Invalid Chai property: fals. Did you mean "false"?
by
withincrease
,change
decrease
.expect(increaseByTwo).to.increase(obj, 'val').by(2)
does
andbut
as new no-op assertion.nested
propertyHow to reproduce:
Test Code
Resulting Error
The text was updated successfully, but these errors were encountered: