( instance: TestInstance | null | undefined, matcherFn: jest.CustomMatcher, context: jest.MatcherContext, )
| 45 | * @param context Jest matcher context used for formatting error. |
| 46 | */ |
| 47 | export function checkHostElement( |
| 48 | instance: TestInstance | null | undefined, |
| 49 | matcherFn: jest.CustomMatcher, |
| 50 | context: jest.MatcherContext, |
| 51 | ): asserts instance is TestInstance { |
| 52 | if (!isTestInstance(instance)) { |
| 53 | throw new HostElementTypeError(instance, matcherFn, context); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | export function formatMessage( |
| 58 | matcher: string, |
no test coverage detected
searching dependent graphs…