about summary refs log tree commit diff
path: root/src/state/session/__tests__
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-12-13 17:14:41 +0000
committerGitHub <noreply@github.com>2024-12-13 17:14:41 +0000
commite2a7965e438db9f70d76d2d7a911aa4c4a42c122 (patch)
treed75b04cf03ad3300feb221341580cca36a9c7005 /src/state/session/__tests__
parent5655241bef22264ad9da3d9ba2074af4e9ba7dd0 (diff)
downloadvoidsky-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/__tests__')
-rw-r--r--src/state/session/__tests__/session-test.ts9
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 {}