Skip to content

Commit 511349f

Browse files
authored
fix solito mocks, live with warning for now (#504)
* fix solito mocks, live with warning for now
1 parent 3a1fbd1 commit 511349f

File tree

5 files changed

+1011
-6
lines changed

5 files changed

+1011
-6
lines changed

packages/app/__mocks__/solito/link.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ import { View } from 'react-native'
22

33
const mockSolitoLink = {
44
__esModule: true,
5-
default: jest.fn(),
65
useLink: jest.fn(),
76
Link: (props) => <View testID={'MockSolitoLink'} {...props} />,
87
}
98

109
module.exports = mockSolitoLink
10+
11+
export const useLink = mockSolitoLink.useLink
12+
export const Link = mockSolitoLink.Link
13+
14+
export default mockSolitoLink

0 commit comments

Comments
 (0)