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
{
- "foo5": "bar-5"
+ "foo5": "some other value"
}
In case of nested objects it should show the full path to a non-matching fields so e.g.,
{
"foo": {
- "foo5": "bar-5"
+ "foo5": "some other value"
},
"bar": {
- "foo5": "bar-5"
+ "foo5": "some other value"
},
- "baz": "actual value",
+ "baz": "expected value",
+ "lorem": "a field which should exist but does not exist"
}
The text was updated successfully, but these errors were encountered:
Old question:
Is there an option to enable this diff, we're using the same version of chai-subset but with chai 4.3 and I only see the following message:
expected { Object (foo1, foo2, ...) } to contain subset { foo5: some other value }
Currently we're using jest-diff to generate the diff message but it's also really noisy for some of our uses case so I'd love if we could just have a diff of the subset expectations instead.
OS: Mac OS X 10.12.6
Node.js: 8.9.4
chai: 3.5.0
chai-subset: 1.6.0
mocha: 3.5.3
I have the following test:
The actual output:
I would like the following output:
In case of nested objects it should show the full path to a non-matching fields so e.g.,
The text was updated successfully, but these errors were encountered: