Skip to content

Commit 771676f

Browse files
authored
README.md
1 parent 1547740 commit 771676f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# jest-matcher-utils
2+
3+
This package's exports are most notably used by `expect`'s [`this.utils`](https://jestjs.io/docs/expect#thisutils).
4+
5+
## Installation
6+
7+
To add this package as a dependency of a project, run either of the following commands:
8+
9+
- `npm install jest-matcher-utils`
10+
- `yarn add jest-matcher-utils`
11+
12+
## Exports ([src/index.ts](jest-matcher-utils/src/index.ts))
13+
14+
### Functions
15+
`stringify`
16+
`highlightTrailingWhitespace`
17+
`printReceived`
18+
`printExpected`
19+
`printWithType`
20+
`ensureNoExpected`
21+
`ensureActualIsNumber`
22+
`ensureExpectedIsNumber`
23+
`ensureNumbers`
24+
`ensureExpectedIsNonNegativeInteger`
25+
`printDiffOrStringify`
26+
`diff`
27+
`pluralize`
28+
`getLabelPrinter`
29+
`matcherErrorMessage`
30+
`matcherHint`
31+
32+
### Types
33+
`MatcherHintOptions`
34+
`DiffOptions`
35+
36+
### Constants
37+
`EXPECTED_COLOR`
38+
`RECEIVED_COLOR`
39+
`INVERTED_COLOR`
40+
`BOLD_WEIGHT`
41+
`DIM_COLOR`
42+
`SUGGEST_TO_CONTAIN_EQUAL`

0 commit comments

Comments
 (0)