File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
packages/jest-matcher-utils Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 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 `
You can’t perform that action at this time.
0 commit comments