Skip to content
This repository was archived by the owner on May 1, 2023. It is now read-only.
This repository was archived by the owner on May 1, 2023. It is now read-only.

React native freshchat sdk fails test by using jest #13

@waseelTekrowe

Description

@waseelTekrowe

I am getting the following error when I run my test cases by using jest.

● Test suite failed to run

TypeError: _reactNativeFreshchatSdk.Freshchat.init is not a function

  17 | freshchatConfig.notificationSoundEnabled = true; //iOS only
  18 | freshchatConfig.themeName = 'CustomTheme.plist'; //iOS only
> 19 | Freshchat.init(freshchatConfig);
     |           ^
  20 |
  21 | var freshchatUser = new FreshchatUser();
  22 | const getUserProfile = async () => {

  at Object.<anonymous> (screens/Support.js:19:11)
  at Object.<anonymous> (navigation/stacks/PatientStack.js:18:1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions