diff options
author | dan <dan.abramov@gmail.com> | 2024-12-13 17:14:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-13 17:14:41 +0000 |
commit | e2a7965e438db9f70d76d2d7a911aa4c4a42c122 (patch) | |
tree | d75b04cf03ad3300feb221341580cca36a9c7005 /src/state/session | |
parent | 5655241bef22264ad9da3d9ba2074af4e9ba7dd0 (diff) | |
download | voidsky-e2a7965e438db9f70d76d2d7a911aa4c4a42c122.tar.zst |
Gate bitdrift integration (#7088)
* Move Statsig init call earlier * Gate Bitdrift init call * Remove IS_TEST env constant * Mock statsig
Diffstat (limited to 'src/state/session')
-rw-r--r-- | src/state/session/__tests__/session-test.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/state/session/__tests__/session-test.ts b/src/state/session/__tests__/session-test.ts index 4c58c6323..7a5ddfa97 100644 --- a/src/state/session/__tests__/session-test.ts +++ b/src/state/session/__tests__/session-test.ts @@ -4,6 +4,15 @@ import {describe, expect, it, jest} from '@jest/globals' import {agentToSessionAccountOrThrow} from '../agent' import {Action, getInitialState, reducer, State} from '../reducer' +jest.mock('statsig-react-native-expo', () => ({ + Statsig: { + initialize() {}, + initializeCalled() { + return false + }, + }, +})) + jest.mock('jwt-decode', () => ({ jwtDecode(_token: string) { return {} |