-
Notifications
You must be signed in to change notification settings - Fork 25
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 #3850 from tloncorp/promote-6-2
ops: promote 6.2
- Loading branch information
Showing
501 changed files
with
20,467 additions
and
7,255 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
# Should only need these two to get started | ||
# running locally | ||
NOTIFY_PROVIDER=wannec-dozzod-marnus | ||
NOTIFY_SERVICE=groups-native-dev | ||
NOTIFY_SERVICE=tlon-preview-debug | ||
|
||
# Prefills auth flow for quicker logins | ||
DEFAULT_TLON_LOGIN_EMAIL= | ||
DEFAULT_TLON_LOGIN_PASSWORD= | ||
DEFAULT_SHIP_LOGIN_URL= | ||
DEFAULT_SHIP_LOGIN_ACCESS_CODE= | ||
|
||
# If you have to run against the hosting test cluster, use | ||
# these (should leave blank in most cases) | ||
API_URL=https://test.tlon.systems | ||
SHIP_URL_PATTERN=https://{shipId}.test.tlon.systems | ||
|
||
# Other env vars that are set in production, use as needed | ||
# for local testing | ||
POST_HOG_API_KEY= | ||
API_AUTH_USERNAME= | ||
API_AUTH_PASSWORD= | ||
API_URL=https://test.tlon.systems | ||
SHIP_URL_PATTERN=https://{shipId}.test.tlon.systems | ||
DEFAULT_LURE= | ||
DEFAULT_PRIORITY_TOKEN= | ||
RECAPTCHA_SITE_KEY_ANDROID= | ||
RECAPTCHA_SITE_KEY_IOS= | ||
DEFAULT_TLON_LOGIN_EMAIL= | ||
DEFAULT_TLON_LOGIN_PASSWORD= | ||
DEFAULT_SHIP_LOGIN_URL= | ||
DEFAULT_SHIP_LOGIN_ACCESS_CODE= | ||
ENABLED_LOGGERS=query,sync | ||
IGNORE_COSMOS=false | ||
TLON_EMPLOYEE_GROUP= | ||
TLON_EMPLOYEE_GROUP= | ||
BRANCH_KEY= | ||
BRANCH_DOMAIN= |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { jest } from '@jest/globals'; | ||
|
||
export const useAsyncStorageDevTools = jest.fn(); |
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 { jest } from '@jest/globals'; | ||
|
||
export const useReactNavigationDevTools = jest.fn(); |
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 { jest } from '@jest/globals'; | ||
|
||
export const useReactQueryDevTools = jest.fn(); |
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,12 @@ | ||
import { jest } from '@jest/globals'; | ||
// Mock OPSQLite modules to use better-sqlite3 instead. | ||
import Database from 'better-sqlite3'; | ||
|
||
module.exports = { | ||
// Disregard requested database name; use an in-memory database | ||
open: () => new Database(), | ||
|
||
// https://github.com/OP-Engineering/op-sqlite/issues/98#issuecomment-2122820151 | ||
isSQLCipher: jest.fn(), | ||
moveAssetsDatabase: jest.fn(), | ||
}; |
33 changes: 33 additions & 0 deletions
33
apps/tlon-mobile/__mocks__/@react-native-community/netinfo.ts
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,33 @@ | ||
import { | ||
NetInfoState, | ||
NetInfoStateType, | ||
} from '@react-native-community/netinfo'; | ||
|
||
type Fetch = (requestedInterface?: string) => Promise<NetInfoState>; | ||
|
||
export const fetch: Fetch = async (_requestedInterface) => { | ||
return { | ||
type: NetInfoStateType.wifi, | ||
isConnected: true, | ||
isInternetReachable: true, | ||
details: { | ||
ssid: null, | ||
bssid: null, | ||
strength: null, | ||
ipAddress: null, | ||
subnet: null, | ||
frequency: null, | ||
linkSpeed: null, | ||
rxLinkSpeed: null, | ||
txLinkSpeed: null, | ||
isConnectionExpensive: false, | ||
}, | ||
}; | ||
}; | ||
|
||
export const addEventListener = jest.fn(() => { | ||
const unsubscribe = () => {}; | ||
return unsubscribe; | ||
}); | ||
|
||
export default { addEventListener }; |
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 { jest } from '@jest/globals'; | ||
|
||
export default { | ||
subscribe: jest.fn(() => { | ||
// return an unsubscribe mock | ||
return jest.fn(); | ||
}), | ||
disableTracking: jest.fn(), | ||
}; |
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,15 @@ | ||
import { jest } from '@jest/globals'; | ||
import { View } from 'react-native'; | ||
|
||
export const enableScreens = jest.fn(); | ||
export const ScreenContainer = View; | ||
export const Screen = View; | ||
export const NativeScreen = View; | ||
export const NativeScreenContainer = View; | ||
export const ScreenStack = View; | ||
export const ScreenStackHeaderConfig = View; | ||
export const ScreenStackHeaderSubview = View; | ||
export const ScreenStackHeaderRightView = View; | ||
export const ScreenStackHeaderLeftView = View; | ||
export const ScreenStackHeaderTitleView = View; | ||
export const ScreenStackHeaderCenterView = View; |
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,7 @@ | ||
// https://github.com/react-native-webview/react-native-webview/issues/2959#issuecomment-1695757917 | ||
import React from 'react'; | ||
import { View } from 'react-native'; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
export const WebView = (props: any) => <View {...props} />; | ||
export default WebView; |
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,24 @@ | ||
import { jest } from '@jest/globals'; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const originalModule = jest.requireActual('react-native') as any; | ||
|
||
originalModule.NativeModules.SettingsManager = { | ||
settings: { | ||
AppleLocale: 'en-US', | ||
AppleLanguages: ['fr-FR', 'en-US'], | ||
}, | ||
}; | ||
|
||
originalModule.NativeModules.UrbitModule = { | ||
clearUrbit: jest.fn(), | ||
setUrbit: jest.fn(), | ||
}; | ||
|
||
Object.defineProperty(originalModule, 'Settings', { | ||
get: jest.fn(() => { | ||
return { get: jest.fn(), set: jest.fn(), watchKeys: jest.fn() }; | ||
}), | ||
}); | ||
|
||
module.exports = originalModule; |
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
Oops, something went wrong.