Skip to content

Commit

Permalink
Merge pull request #35466 from JKobrynski/migrateReactNativeDevMenuTo…
Browse files Browse the repository at this point in the history
…TypeScript

[No QA] [TS migration] Migrate 'react-native-dev-menu.js' mock to TypeScript
  • Loading branch information
Gonals committed Feb 8, 2024
2 parents f697c89 + 25808fe commit 173eca8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 0 additions & 3 deletions __mocks__/react-native-dev-menu.js

This file was deleted.

11 changes: 11 additions & 0 deletions __mocks__/react-native-dev-menu.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type {addItem} from 'react-native-dev-menu';

type ReactNativeDevMenuMock = {
addItem: typeof addItem;
};

const reactNativeDevMenuMock: ReactNativeDevMenuMock = {
addItem: jest.fn(),
};

export default reactNativeDevMenuMock;

0 comments on commit 173eca8

Please sign in to comment.