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

Add BottomSheetTextInput to the mock #1698

Merged
merged 1 commit into from
Feb 18, 2024
Merged

Conversation

ghorbani-m
Copy link

Please provide enough information so that others can review your pull request:

Tests failing due to using BottomSheetTextInput in the components

I noticed an error in the unit tests when using BottomSheetTextInput component in the components. because the BottomSheetTextInput is not exposed in the mock object.
The error is

TaskQueue: Error with task : Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

    Check the render method of `ForwardRef`.

Motivation

So I added the BottomSheetTextInput in the mock object to resolve the unit tests errors

Copy link

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

Copy link
Owner

@gorhom gorhom left a comment

Choose a reason for hiding this comment

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

thanks @ghorbani-m 👏

@gorhom gorhom merged commit 0256adb into gorhom:master Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants