We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5c94d0 commit 0a65366Copy full SHA for 0a65366
sdk/highlight-run/src/index.test.tsx
@@ -14,6 +14,18 @@ const sessionData = {
14
sessionStartTime: new Date().getTime(),
15
}
16
17
+vi.mock('./client/graph/generated/operations', () => ({
18
+ getSdk: () => ({
19
+ initializeSession: vi.fn().mockResolvedValue({
20
+ initializeSession: {
21
+ secure_id: sessionData.sessionSecureID,
22
+ project_id: sessionData.projectID,
23
+ sampling: {},
24
+ },
25
+ }),
26
27
+}))
28
+
29
// Temporarily set the backendUrl to staging for all tests.
30
const backendUrl = 'https://pub.observability.ld-stg.launchdarkly.com/'
31
0 commit comments