Neil Patrick's Mansion

    jest-matcher-utils
    TypeScript icon, indicating that this package has built-in type declarations

    28.1.1 • Public • Published

    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

    Keywords

    none

    Install

    npm i jest-matcher-utils

    DownloadsWeekly Downloads

    19,682,132

    Version

    28.1.1

    License

    MIT

    Unpacked Size

    27.8 kB

    Total Files

    7

    Last publish

    Collaborators

    • scotthovestadt
    • rubennorte
    • simenb
    • fb
    • aaronabramov
    • davidzilburg