@testing-library/react-native
Version:
Simple and complete React Native testing utilities that encourage good testing practices.
8 lines (7 loc) • 352 B
TypeScript
import type { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
import type { TestInstance } from 'test-renderer';
export type Style = ViewStyle | TextStyle | ImageStyle;
export declare function toHaveStyle(this: jest.MatcherContext, instance: TestInstance, style: StyleProp<Style>): {
pass: boolean;
message: () => string;
};