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

[jest] Suppress warning about non-worklet callbacks #3050

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

m-bert
Copy link
Contributor

@m-bert m-bert commented Aug 19, 2024

Description

As mentioned in this discussion, while testing Gesture Handler with jest you can see the following warning:

None of the callbacks in the gesture are worklets. If you wish to run them on the JS thread use '.runOnJS(true)' modifier on the gesture to make this explicit. Otherwise, mark the callbacks as 'worklet' to run them on the UI thread.

Since worklets do not work in jest, I believe it is safe to simply suppress this error.

Test plan

Run tests in our repository

@m-bert m-bert requested a review from j-piasecki August 19, 2024 17:25
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