( matcher: RawMatcherFn, )
| 78 | } |
| 79 | |
| 80 | const createToThrowErrorMatchingSnapshotMatcher = function ( |
| 81 | matcher: RawMatcherFn, |
| 82 | ) { |
| 83 | return function ( |
| 84 | this: MatcherContext, |
| 85 | received: any, |
| 86 | testNameOrInlineSnapshot?: string, |
| 87 | ) { |
| 88 | return matcher.apply(this, [received, testNameOrInlineSnapshot, true]); |
| 89 | }; |
| 90 | }; |
| 91 | |
| 92 | const getPromiseMatcher = (name: string, matcher: RawMatcherFn) => { |
| 93 | if (name === 'toThrow') { |
no test coverage detected