Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

TypeError when using Jest along with this package #28

@ansh

Description

@ansh

When I run my jest test scripts I get this error: TypeError: Cannot read property 'UNREAD_COUNT_CHANGE_NOTIFICATION' of undefined

In reference to #16, the only way to fix it is to install the v1.2.1 of this package. But, according to the README, if I am using Expo SDK 45, I have to use v1.3 or above of this package.

Seems to be impossible for anyone in SDK 45 and someone who is using jest to be able to use this config plugin package.

Is there a fix as referenced by #16?

Full error:

    TypeError: Cannot read property 'UNREAD_COUNT_CHANGE_NOTIFICATION' of undefined

      2 |
      3 | import { isEmpty } from "@firebase/util";
    > 4 | import Intercom from "@intercom/intercom-react-native";
        | ^
      5 | import * as AppleAuthentication from "expo-apple-authentication";
      6 | import * as Crypto from "expo-crypto";
      7 | import {

      at Object.<anonymous> (node_modules/@intercom/intercom-react-native/lib/commonjs/index.tsx:36:26)
      at Object.<anonymous> (src/provider/AuthProvider/AuthProvider.tsx:4: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