We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(Follow-up to #283 but an issue that can be tackled separately)
Given:
{ _id: 42, foo: 'bar' }, { _id: 43, foo: 'baz' }, { _id: 44, lorem: 'ipsum' } ]; expect(items).toInclude([ expect.subset({ x: 'y' }), ])
If toInclude fails the generated error message is not that helpful:
Uncaught The value [3 entries] does not include [expect.?], but it was expected to. at expect().toInclude
It would be great if we could see or opt-in to see the full object or maybe parts of the object that do not include what was expected?
The text was updated successfully, but these errors were encountered:
feat: Improve toInclude error texts for arrays
6a8931d
Fixes l2beat#284
Successfully merging a pull request may close this issue.
(Follow-up to #283 but an issue that can be tackled separately)
Given:
If toInclude fails the generated error message is not that helpful:
It would be great if we could see or opt-in to see the full object or maybe parts of the object that do not include what was expected?
The text was updated successfully, but these errors were encountered: