Skip to content

Commit 6dffe0b

Browse files
authored
fix jest test (#119)
1 parent c0d3824 commit 6dffe0b

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

packages/react-native/Libraries/Image/Image.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

packages/react-native/jest/mockComponent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export default function mockComponent<
3939
React.ElementProps<typeof RealComponent>,
4040
> =
4141
typeof RealComponent === 'function' &&
42+
RealComponent.prototype != null &&
4243
RealComponent.prototype.constructor instanceof React.Component
4344
? RealComponent
4445
: React.Component;

0 commit comments

Comments
 (0)