Not many changes have got in since the last release but this one contains a very important change (#1257) which will allow jest users to get better diffs. From this release onwards, jest users will be able to see which operator was used in their diffs. The operator is a property of the AssertionError thrown when assertions fail. This flag indicates what kind of comparison was made.
This is also an important change for plugin maintainers. Plugin maintainers will now have access to the operatorflag, which they can have access to through an utilmethod calledgetOperator`.
Thanks to all the amazing people that contributed to this release.
New Features
Allow contain.oneOf to take an array of possible values (@voliva)
This version was pushed to npm by chai, a new releaser for chai since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
Bumps chai from 4.2.0 to 4.3.0.
Release notes
Sourced from chai's releases.
Commits
8ae00a0
chai@4.3.003913cb
Merge pull request #1242 from voliva/contains-oneOf9d2f6dc
docs(oneOf): Add contains flag to oneOf documentation7eaf684
feat(oneOf): expect(value).to.contain.oneOf([])8dc92d8
Adding operator attribute to assertion error (#1257)1958341
chore(package): update lockfile package-lock.json7bb36a4
chore(package): update mocha to version 6.1.442509fa
test: make sure that useProxy config is checked in overwriteProperty18d8494
chore: add node v10 and v12 to ci6740969
chore: drop support for node v4, v6 and v9Maintainer changes
This version was pushed to npm by chai, a new releaser for chai since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually