-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38570 from VickyStash/ts-migration/g28-files
[No QA] [TS migration] Migrate remaining Mock and Script files to TypeScript
- Loading branch information
Showing
7 changed files
with
35 additions
and
31 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import clipboardMock from '@react-native-clipboard/clipboard/jest/clipboard-mock'; | ||
|
||
export default clipboardMock; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
declare module '@react-native-clipboard/clipboard/jest/clipboard-mock' { | ||
const mockClipboard: { | ||
getString: jest.MockedFunction<() => Promise<string>>; | ||
getImagePNG: jest.MockedFunction<() => void>; | ||
getImageJPG: jest.MockedFunction<() => void>; | ||
setImage: jest.MockedFunction<() => void>; | ||
setString: jest.MockedFunction<() => void>; | ||
hasString: jest.MockedFunction<() => Promise<boolean>>; | ||
hasImage: jest.MockedFunction<() => Promise<boolean>>; | ||
hasURL: jest.MockedFunction<() => Promise<boolean>>; | ||
addListener: jest.MockedFunction<() => void>; | ||
removeAllListeners: jest.MockedFunction<() => void>; | ||
useClipboard: jest.MockedFunction<() => [string, jest.MockedFunction<() => void>]>; | ||
}; | ||
export default mockClipboard; | ||
import type Clipboard from '@react-native-clipboard/clipboard'; | ||
|
||
const clipboardMock: typeof Clipboard; | ||
|
||
export default clipboardMock; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters