Skip to content

Invariant Violation: new NativeEventEmitter() requires a non-null argument. #832

Description

Describe the bug

Upon upgrade to v2.6.4 many jest tests are failing with this error. Issue persists despite adding jest.mock('@datadog/mobile-react-native'); to my setup.

Reproduction steps

  1. Add a file or feature under test that imports from the datadog sdk
  2. Run test

SDK logs

N/A

Expected behavior

No response

Affected SDK versions

2.6.4 (latest)

Latest working SDK version

2.6.3

Did you confirm if the latest SDK version fixes the bug?

Yes

Integration Methods

Yarn

React Native Version

0.77.2 (old architecture)

Package.json Contents

No response

iOS Setup

No response

Android Setup

No response

Device Information

No response

Other relevant information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions