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
fix(mock): add interpolate to mock #2895
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
piaskowyk
approved these changes
Jan 28, 2022
Thanks! 🚀 |
yiheyang
pushed a commit
to yiheyang/taro-reanimated
that referenced
this pull request
Feb 3, 2022
## Description `interpolate is not a function` was encountered during test when `reanimated` is mocked, it was, in fact, missing from `mock.js` ## Changes add `interpolate` to `mock.js` ## Test code and steps to reproduce ```js // jest.setup.js jest.mock('react-native-reanimated', () => require('react-native-reanimated/mock')); ``` Test render a component that has interpolation. ## 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
piaskowyk
pushed a commit
that referenced
this pull request
Feb 5, 2022
## Description `interpolateColor is not a function` was encountered during test when `reanimated` is mocked, it was, in fact, missing from `mock.js` I think there's more of this (#2895), what's a good way to add all of the missing ones? ## Changes add `interpolateColor` to `mock.js` ## Test code and steps to reproduce ```js // jest.setup.js jest.mock('react-native-reanimated', () => require('react-native-reanimated/mock')); ``` Test render a component that has interpolateColors. ## 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
alexandrius
pushed a commit
to ExodusMovement/react-native-reanimated
that referenced
this pull request
Feb 14, 2022
## Description `interpolateColor is not a function` was encountered during test when `reanimated` is mocked, it was, in fact, missing from `mock.js` I think there's more of this (software-mansion#2895), what's a good way to add all of the missing ones? ## Changes add `interpolateColor` to `mock.js` ## Test code and steps to reproduce ```js // jest.setup.js jest.mock('react-native-reanimated', () => require('react-native-reanimated/mock')); ``` Test render a component that has interpolateColors. ## 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
aeddi
pushed a commit
to aeddi/react-native-reanimated
that referenced
this pull request
Mar 22, 2022
## Description `interpolate is not a function` was encountered during test when `reanimated` is mocked, it was, in fact, missing from `mock.js` ## Changes add `interpolate` to `mock.js` ## Test code and steps to reproduce ```js // jest.setup.js jest.mock('react-native-reanimated', () => require('react-native-reanimated/mock')); ``` Test render a component that has interpolation. ## 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
aeddi
pushed a commit
to aeddi/react-native-reanimated
that referenced
this pull request
Mar 22, 2022
## Description `interpolateColor is not a function` was encountered during test when `reanimated` is mocked, it was, in fact, missing from `mock.js` I think there's more of this (software-mansion#2895), what's a good way to add all of the missing ones? ## Changes add `interpolateColor` to `mock.js` ## Test code and steps to reproduce ```js // jest.setup.js jest.mock('react-native-reanimated', () => require('react-native-reanimated/mock')); ``` Test render a component that has interpolateColors. ## 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
interpolate is not a function
was encountered during test whenreanimated
is mocked, it was, in fact, missing frommock.js
Changes
add
interpolate
tomock.js
Test code and steps to reproduce
Test render a component that has interpolation.
Checklist