Sourced from chai's releases.
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. Theoperator
is a property of theAssertionError
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 called
getOperator`.Thanks to all the amazing people that contributed to this release.
New Features
- Allow
contain.oneOf
to take an array of possible values (@voliva
)- Adding operator attribute to assertion error (#1257) (
@rpgeeganage
)- The
closeTo
error message will now inform the user when adelta
is required (@eouw0o83hf
)Docs
- Add contains flag to oneOf documentation (
@voliva
)Tests
- Make sure that
useProxy
config 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)
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 v9This version was pushed to npm by chai, a new releaser for chai since your current version.