-
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 branch 'main' into DistanceEReceipt-ts-migration
- Loading branch information
Showing
349 changed files
with
4,635 additions
and
7,148 deletions.
There are no files selected for viewing
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 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 MockClipboard from '@react-native-clipboard/clipboard/jest/clipboard-mock'; | ||
|
||
export default MockClipboard; |
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,31 @@ | ||
import {NetInfoCellularGeneration, NetInfoStateType} from '@react-native-community/netinfo'; | ||
import type {addEventListener, configure, fetch, NetInfoState, refresh, useNetInfo} from '@react-native-community/netinfo'; | ||
|
||
const defaultState: NetInfoState = { | ||
type: NetInfoStateType.cellular, | ||
isConnected: true, | ||
isInternetReachable: true, | ||
details: { | ||
isConnectionExpensive: true, | ||
cellularGeneration: NetInfoCellularGeneration['3g'], | ||
carrier: 'T-Mobile', | ||
}, | ||
}; | ||
|
||
type NetInfoMock = { | ||
configure: typeof configure; | ||
fetch: typeof fetch; | ||
refresh: typeof refresh; | ||
addEventListener: typeof addEventListener; | ||
useNetInfo: typeof useNetInfo; | ||
}; | ||
|
||
const netInfoMock: NetInfoMock = { | ||
configure: () => {}, | ||
fetch: () => Promise.resolve(defaultState), | ||
refresh: () => Promise.resolve(defaultState), | ||
addEventListener: () => () => {}, | ||
useNetInfo: () => defaultState, | ||
}; | ||
|
||
export default netInfoMock; |
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 @@ | ||
const fileMock = 'test-file-stub'; | ||
|
||
export default fileMock; |
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,5 @@ | ||
import type RNFetchBlob from 'react-native-blob-util'; | ||
|
||
const ReactNativeBlobUtilMock: Partial<typeof RNFetchBlob> = {}; | ||
|
||
export default ReactNativeBlobUtilMock; |
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,8 @@ | ||
import dotenv from 'dotenv'; | ||
import path from 'path'; | ||
|
||
type ReactNativeConfigMock = dotenv.DotenvParseOutput | undefined; | ||
|
||
const reactNativeConfigMock: ReactNativeConfigMock = dotenv.config({path: path.resolve('./.env.example')}).parsed; | ||
|
||
export default reactNativeConfigMock; |
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,11 @@ | ||
import type {addItem} from 'react-native-dev-menu'; | ||
|
||
type ReactNativeDevMenuMock = { | ||
addItem: typeof addItem; | ||
}; | ||
|
||
const reactNativeDevMenuMock: ReactNativeDevMenuMock = { | ||
addItem: jest.fn(), | ||
}; | ||
|
||
export default reactNativeDevMenuMock; |
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,6 @@ | ||
import type DeviceInfoModule from 'react-native-device-info'; | ||
import MockDeviceInfo from 'react-native-device-info/jest/react-native-device-info-mock'; | ||
|
||
const DeviceInfo: typeof DeviceInfoModule = MockDeviceInfo; | ||
|
||
export default DeviceInfo; |
This file was deleted.
Oops, something went wrong.
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 mockRNLocalize from 'react-native-localize/mock'; | ||
|
||
module.exports = mockRNLocalize; |
This file was deleted.
Oops, something went wrong.
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
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
53 changes: 0 additions & 53 deletions
53
...pp/src/main/java/com/expensify/chat/customairshipextender/CustomNotificationListener.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.