function createMockCall()

in packages/react-composites/src/composites/CallWithChatComposite/adapter/TestUtils.ts [212:267]


function createMockCall(mockCallId: string): CallState {
  const call: CallState = {
    kind: 'Call' as CallKind,
    id: mockCallId,
    callerInfo: {} as MockCallerInfo,
    state: 'None',
    diagnostics: {
      network: {
        latest: {}
      },
      media: {
        latest: {}
      }
    },
    direction: 'Incoming',
    isMuted: true,
    isScreenSharingOn: false,
    localVideoStreams: [],
    remoteParticipants: {},
    remoteParticipantsEnded: {},
    recording: { isRecordingActive: false },
    /* @conditional-compile-remove(local-recording-notification) */
    localRecording: { isLocalRecordingActive: false },
    transcription: { isTranscriptionActive: false },
    screenShareRemoteParticipant: undefined,
    startTime: new Date(),
    endTime: undefined,
    dominantSpeakers: undefined,
    raiseHand: { raisedHands: [] },
    /* @conditional-compile-remove(together-mode) */
    togetherMode: { isActive: false, streams: {}, seatingPositions: {} },
    pptLive: { isActive: false },
    localParticipantReaction: undefined,
    captionsFeature: {
      captions: [],
      supportedSpokenLanguages: [],
      supportedCaptionLanguages: [],
      currentCaptionLanguage: '',
      currentSpokenLanguage: '',
      isCaptionsFeatureActive: false,
      startCaptionsInProgress: false,
      captionsKind: 'Captions'
    },
    realTimeTextFeature: {
      realTimeTexts: {},
      isRealTimeTextFeatureActive: false
    },
    transfer: {
      acceptedTransfers: {}
    },
    optimalVideoCount: {
      maxRemoteVideoStreams: 4
    }
  };
  return call;
}