Skip to content

Jest issue #86

@purvagevaria

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions