Skip to content

Commit

Permalink
test: Mock useIsConnected native bridge method
Browse files Browse the repository at this point in the history
The native implementation is not available within the JavaScript testing
environment.
  • Loading branch information
dcalhoun committed Dec 13, 2023
1 parent 281c5af commit 5b32144
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/native/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ jest.mock( '@wordpress/react-native-bridge', () => {
subscribeShowEditorHelp: jest.fn(),
subscribeOnUndoPressed: jest.fn(),
subscribeOnRedoPressed: jest.fn(),
useIsConnected: jest.fn( () => ( { isConnected: true } ) ),
editorDidMount: jest.fn(),
editorDidAutosave: jest.fn(),
subscribeMediaUpload: jest.fn(),
Expand Down

0 comments on commit 5b32144

Please sign in to comment.