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

React native freshchat sdk fails test by using jest #13

Open
waseelTekrowe opened this issue Jun 1, 2021 · 0 comments
Open

React native freshchat sdk fails test by using jest #13

waseelTekrowe opened this issue Jun 1, 2021 · 0 comments

Comments

@waseelTekrowe
Copy link

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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant