Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

jest-matcher-utils

Package Overview
Dependencies
4
Maintainers
6
Versions
215
Issues
File Explorer

Advanced tools

jest-matcher-utils

A set of utility functions for expect and related packages

    29.3.1latest

Version published
Maintainers
6
Weekly downloads
30,199,789
increased by6.09%

Weekly downloads

Changelog

Source

29.3.1

Fixes

  • [jest-config] Do not warn about preset in ProjectConfig (#13583)

Performance

  • [jest-transform] Defer creation of cache directory (#13420)

Readme

Source

jest-matcher-utils

This package's exports are most notably used by expect's this.utils.

Installation

To add this package as a dependency of a project, run either of the following commands:

  • npm install jest-matcher-utils
  • yarn add jest-matcher-utils

Exports (src/index.ts)

Functions

stringify highlightTrailingWhitespace printReceived printExpected printWithType ensureNoExpected ensureActualIsNumber ensureExpectedIsNumber ensureNumbers ensureExpectedIsNonNegativeInteger printDiffOrStringify diff pluralize getLabelPrinter matcherErrorMessage matcherHint

Types

MatcherHintOptions DiffOptions

Constants

EXPECTED_COLOR RECEIVED_COLOR INVERTED_COLOR BOLD_WEIGHT DIM_COLOR SUGGEST_TO_CONTAIN_EQUAL

FAQs

What is jest-matcher-utils?

A set of utility functions for expect and related packages

Is jest-matcher-utils popular?

The npm package jest-matcher-utils receives a total of 25,399,098 weekly downloads. As such, jest-matcher-utils popularity was classified as popular.

Is jest-matcher-utils well maintained?

We found that jest-matcher-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 6 open source maintainers collaborating on the project.

Last updated on 08 Nov 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc