Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jest-extended

jest-community4.5mMIT4.0.2TypeScript support: included

Additional Jest matchers

jest, matchers, extend, extended, test, testing, assertions

readme

jest-extended

🃏💪

Additional Jest matchers


Build Status Code Coverage version downloads MIT License PRs Welcome Examples

Problem

Jest is an amazing test runner and has some awesome assertion APIs built in by default. However, there are times when having more specific matchers (assertions) would be far more convenient.

Solution

jest-extended aims to add additional matchers to Jest's default ones making it easy to test everything 🙌

Contributing

If you've come here to help contribute - Thanks! Take a look at the contributing docs as a way of getting started.

Installation

See the Installation Guide on Jest Extended documentation site.

Setup

See the Setup instructions on Jest Extended documentation site.

Matchers

See all available matchers and interactive repl on Jest Extended documentation site.

LICENSE

MIT

changelog

jest-extended

4.0.2

Patch Changes

  • 1f88101: Mark 2nd param of toHaveBeenCalledBefore and toHaveBeenCalledAfter optional

4.0.1

Patch Changes

  • bad7056: Fix toHaveBeenCalledExactlyOnceWith typings
  • 1609897: Remove problematic Vitest types

4.0.0

Major Changes

  • ab20845: Rename toHaveBeenCalledOnceWith to toHaveBeenCalledExactlyOnceWith

Minor Changes

  • 5b80ca8: support vitest 0.31.0

Patch Changes

  • ab20845: Make CustomMatchers extend Record to fix a TypeScript error
  • ab20845: Fix toHaveBeenCalledOnceWith messages
  • ab20845: Change unknown to any in toHaveBeenCalledBefore and toHaveBeenCalledAfter

3.2.4

Patch Changes

  • 0b07513: Support varargs in toHaveBeenCalledOnceWith (#557)