4.3.0 / 2021-02-04
This is a minor release.
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 operator flag, 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.oneOfto take an array of possible values (@voliva) - Adding operator attribute to assertion error (#1257) (@rpgeeganage)
- The
closeToerror message will now inform the user when adeltais required (@eouw0o83hf)
Docs
- Add contains flag to oneOf documentation (@voliva)
Tests
- Make sure that
useProxyconfig is checked inoverwriteProperty(@vieiralucas) - Add tests for
contain.oneOf(@voliva )
Chores
- Update mocha to version 6.1.4
- Add node v10 and v12 to ci (@vieiralucas)
- Drop support for node v4, v6 and v9 (@vieiralucas)
- Fix sauce config for headless chrome (@meeber)
- Update dev dependencies (@meeber)
- Removed phantomjs dependency (#1204)