Skip to content

Shadow unable to pass Jest tests #1845

@nabil-k

Description

@nabil-k

Willing to submit a PR to fix?

  • I am willing to submit a PR to fix

Requested priority

No response

Products/applications affected

Shadow Component, after FURN update to RN 0.66

Package version(s)

@fluentui-react-native/experimental-shadow (0.2.2)

OS version(s)

No response

Platform

  • iOS
  • macOS
  • win32
  • windows
  • android

Xcode version

No response

Please provide a reproduction of the bug

To see the issue add "test": "fluentui-scripts jest" to the Shadow's package.json under scripts and run yarn test at the components root folder. Or just run yarn buildci

Actual behavior

Error you'll see:
ERR! FAIL src/tests/Shadow.test.tsx
ERR! ● Shadow component tests › Shadow (depth=2)
ERR!
ERR! Invariant Violation: __fbBatchedBridgeConfig is not set, cannot invoke native modules
ERR!
ERR! at invariant (../../../node_modules/invariant/invariant.js:40:15)
ERR! at Object. (node_modules/react-native/Libraries/BatchedBridge/NativeModules.js:181:3)
ERR! at Object. (node_modules/react-native/Libraries/TurboModule/TurboModuleRegistry.js:11:23)

Expected behavior

Test should pass.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions