Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mrienstra committed Oct 8, 2021
1 parent 1547740 commit 771676f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions packages/jest-matcher-utils/README.md
@@ -0,0 +1,42 @@
# jest-matcher-utils

This package's exports are most notably used by `expect`'s [`this.utils`](https://jestjs.io/docs/expect#thisutils).

## 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](jest-matcher-utils/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`

0 comments on commit 771676f

Please sign in to comment.