You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you see this is not that declarative and helpful since i cannot spot the exact keys where this assertion fails. Same result i am getting if i use assert.deepEqual(...); and expect(...).to.deep.equal(...);
If i use expect 1.20.2 with exact same setup and run sth like expect(...).toEqual(...); this is the error i am getting:
The text was updated successfully, but these errors were encountered:
Hi @fakiolinho. In general, there's a lot of room for improvement in the Chai failed assertion messages. It's on the roadmap (#457) to do a refactor.
With that said, the particular problem you noted might be resolvable by fiddling with the chai.config.truncateThreshold value documented here. Setting it to 0 will disable truncation completely.
I am using
jest 19.0.2
andchai 3.5.0
and i am trying to run some assertions for my Redux reducers. I am trying to compare 2 objects by using:This is the result i am getting:
As you see this is not that declarative and helpful since i cannot spot the exact keys where this assertion fails. Same result i am getting if i use
assert.deepEqual(...);
andexpect(...).to.deep.equal(...);
If i use
expect 1.20.2
with exact same setup and run sth likeexpect(...).toEqual(...);
this is the error i am getting:The text was updated successfully, but these errors were encountered: