Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix fail test cases #310

Merged

Conversation

ShivangiTiwari10
Copy link
Contributor

In this PR fix these error

  1. "mockModal is not a function" : To fix this error
    a. updated react native version to 67.0.2
    b. rename _ruby-Version to .ruby-version
    c. rename _bundle/config to .bundle/config
    d. Gemfile.lock : updated i18n and zeitwerk

  2. [RNEncryptedStorage is undefined : To mock RNEncryptedStorage add react-native-encrypted-storage mock to
    our mocks folder.

  3. new NativeEventEmitter() requires a non-null argument : these two lines in 'jest.setup.js' fixed the issue
    import mockRNDeviceInfo from "react-native-device-info/jest/react-native-device-info-mock"
    jest.mock("react-native-device-info", () => mockRNDeviceInfo)

4.console.error
Warning: dispatchCommand was called with a ref that isn't a native component. Use React.forwardRef to get
access to the underlying native component : To fix this in Switch.js update useMergeRefs to useRef

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you commit yarn.lock file?

@shreya-mishra shreya-mishra changed the base branch from develop to staging October 24, 2023 12:44
@shreya-mishra shreya-mishra merged commit d0d484b into Real-Dev-Squad:staging Oct 25, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants