({ size, testID }: { size: number; testID: string })
| 32 | |
| 33 | it('renders correctly with function source', () => { |
| 34 | const source = ({ size, testID }: { size: number; testID: string }) => ( |
| 35 | <Image |
| 36 | accessibilityIgnoresInvertColors |
| 37 | source={{ uri: 'https://picsum.photos/700' }} |
| 38 | style={{ width: size, height: size }} |
| 39 | testID={testID} |
| 40 | /> |
| 41 | ); |
| 42 | const { getByTestId } = render( |
| 43 | <Icon source={source} size={ICON_SIZE} testID="function-icon" /> |
| 44 | ); |
no outgoing calls
no test coverage detected
searching dependent graphs…