Skip to content

cherry-pick(Reanimated): Add worklet mock helper function for jest unit tests#8970

Merged
MatiPl01 merged 1 commit into4.2-stablefrom
@matipl01/cherry-pick/worklet-mock
Feb 16, 2026
Merged

cherry-pick(Reanimated): Add worklet mock helper function for jest unit tests#8970
MatiPl01 merged 1 commit into4.2-stablefrom
@matipl01/cherry-pick/worklet-mock

Conversation

@MatiPl01
Copy link
Member

Cherry-pick of the #8882

## Summary

This PR adds a helper `worklet` function to create worklet function
mocks (functions that pretend to be worklets instead of plain
functions). Sometimes behavior of our code is dependent on whether a
function is a worklet or not - to distinguish this behavior in tests, I
need to have a way to create function mocks that will be treated as
worklets.
@MatiPl01 MatiPl01 self-assigned this Feb 16, 2026
@MatiPl01 MatiPl01 requested a review from tjzel February 16, 2026 14:18
@MatiPl01 MatiPl01 merged commit 19df7df into 4.2-stable Feb 16, 2026
26 of 40 checks passed
@MatiPl01 MatiPl01 deleted the @matipl01/cherry-pick/worklet-mock branch February 16, 2026 14:22
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