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 runOnUI to mocks #3261

Merged
merged 1 commit into from
Jun 29, 2022
Merged

Add runOnUI to mocks #3261

merged 1 commit into from
Jun 29, 2022

Conversation

oliwheeler
Copy link
Contributor

Description

When running tests in jest, getting this error:

TypeError: (0 , _reactNativeReanimated.runOnUI) is not a function

Changes

Add runOnUI to mock.ts

Test code and steps to reproduce

Checklist

  • Included code example that can be used to test this change
  • Updated TS types
  • Added TS types tests
  • Added unit / integration tests
  • Updated documentation
  • Ensured that CI passes

When running tests in jest, getting this error:

 ```sh
TypeError: (0 , _reactNativeReanimated.runOnUI) is not a function
```
Copy link
Member

@piaskowyk piaskowyk left a comment

Choose a reason for hiding this comment

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

Thank you that you prepared the PR with a fix! 🙌

@piaskowyk piaskowyk merged commit a0f1ec9 into software-mansion:main Jun 29, 2022
piaskowyk pushed a commit that referenced this pull request Jun 30, 2022
## Description

When running tests in jest, getting this error:

 ```sh
TypeError: (0 , _reactNativeReanimated.runOnUI) is not a function
```
## Changes


Add `runOnUI` to `mock.ts`
@oliwheeler oliwheeler deleted the patch-1 branch July 4, 2022 09:17
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