-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 ts-migration-signin
# Conflicts: # src/pages/signin/LoginForm/BaseLoginForm.tsx # src/pages/signin/SignInHeroImage.js # src/pages/signin/SignInPage.tsx # src/pages/signin/SignInPageLayout/BackgroundImage/index.ios.js # src/pages/signin/SignInPageLayout/Footer.tsx # src/pages/signin/SignInPageLayout/SignInPageContent.tsx # src/pages/signin/SignInPageLayout/index.tsx # src/types/onyx/Form.ts
- Loading branch information
Showing
517 changed files
with
13,175 additions
and
10,186 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 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 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,8 @@ | ||
import {fs} from 'memfs'; | ||
import type {FsPromisesApi} from 'memfs/lib/node/types'; | ||
|
||
type PromisesMock = FsPromisesApi; | ||
|
||
const promisesMock: PromisesMock = fs.promises; | ||
|
||
export default promisesMock; |
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,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 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,23 @@ | ||
export default { | ||
getConstants: jest.fn(), | ||
pick: jest.fn(), | ||
releaseSecureAccess: jest.fn(), | ||
pickDirectory: jest.fn(), | ||
|
||
types: Object.freeze({ | ||
allFiles: 'public.item', | ||
audio: 'public.audio', | ||
csv: 'public.comma-separated-values-text', | ||
doc: 'com.microsoft.word.doc', | ||
docx: 'org.openxmlformats.wordprocessingml.document', | ||
images: 'public.image', | ||
pdf: 'com.adobe.pdf', | ||
plainText: 'public.plain-text', | ||
ppt: 'com.microsoft.powerpoint.ppt', | ||
pptx: 'org.openxmlformats.presentationml.presentation', | ||
video: 'public.movie', | ||
xls: 'com.microsoft.excel.xls', | ||
xlsx: 'org.openxmlformats.spreadsheetml.sheet', | ||
zip: 'public.zip-archive', | ||
}), | ||
}; |
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,9 @@ | ||
import type {addListener as _addListener, constants as _constants} from 'react-native-key-command'; | ||
|
||
const registerKeyCommands = () => {}; | ||
const unregisterKeyCommands = () => {}; | ||
const constants: Partial<typeof _constants> = {}; | ||
const eventEmitter = () => {}; | ||
const addListener: typeof _addListener = () => () => {}; | ||
|
||
export {addListener, constants, eventEmitter, registerKeyCommands, unregisterKeyCommands}; |
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 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.