Skip to content

Jest issue #86

Description

@purvagevaria

Hi, I've used the code and in test cases, it shows me the below error.
`node_modules/react-native-bluetooth-status/index.js: Unexpected token (15:14)

  13 | const BT_STATUS_EVENT = "bluetoothStatus";
  14 | class BluetoothManager {
> 15 |   subscription: mixed;
     |               ^
  16 |   inited: boolean;
  17 |   bluetoothState:
  18 |     | "unknown"

`

Any idea how to mock/avoid library import in jest ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions