(name: string, matcher: RawMatcherFn)
| 90 | }; |
| 91 | |
| 92 | const getPromiseMatcher = (name: string, matcher: RawMatcherFn) => { |
| 93 | if (name === 'toThrow') { |
| 94 | return createThrowMatcher(name, true); |
| 95 | } else if ( |
| 96 | name === 'toThrowErrorMatchingSnapshot' || |
| 97 | name === 'toThrowErrorMatchingInlineSnapshot' |
| 98 | ) { |
| 99 | return createToThrowErrorMatchingSnapshotMatcher(matcher); |
| 100 | } |
| 101 | |
| 102 | return null; |
| 103 | }; |
| 104 | |
| 105 | export const expect: Expect = (actual: any, ...rest: Array<any>) => { |
| 106 | if (rest.length > 0) { |
no test coverage detected