-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Move RefreshControlMock into Jest preset files #51530
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
Conversation
This pull request was exported from Phabricator. Differential Revision: D75215731 |
Summary: Pull Request resolved: facebook#51530 Alternative to facebook#50784. `__mocks__` (and other underscored dirs) are correctly excluded from our npm package via `package.json#files`. But in this instance, this is a source file for the `jest/` directory (Jest preset within `react-native`), and should be included — fix by relocating. Changelog: [General][Fixed] - Fix missing RefreshControlMock source in Jest preset Reviewed By: rshest Differential Revision: D75215731
This pull request was exported from Phabricator. Differential Revision: D75215731 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This pull request has been merged in 6044e01. |
This pull request was successfully merged by @huntie in 6044e01 When will my fix make it into a release? | How to file a pick request? |
@huntie Sorry to hijack this PR. If that's the case, we are seeing this issue on more components: |
@jerone No. Reported error occurs during analysing imports rather than execution of tests. |
Summary: Pull Request resolved: facebook#51530 Alternative to facebook#50784. `__mocks__` (and other underscored dirs) are correctly excluded from our npm package via `package.json#files`. But in this instance, this is a source file for the `jest/` directory (Jest preset within `react-native`), and should be included — fix by relocating. Changelog: [General][Fixed] - Fix missing RefreshControlMock source in Jest preset Reviewed By: rshest Differential Revision: D75215731 fbshipit-source-id: 1240344c4236288f31b16513f4df16766ad1e571 # Conflicts: # packages/react-native/jest/setup.js
Summary: Pull Request resolved: #51530 Alternative to #50784. `__mocks__` (and other underscored dirs) are correctly excluded from our npm package via `package.json#files`. But in this instance, this is a source file for the `jest/` directory (Jest preset within `react-native`), and should be included — fix by relocating. Changelog: [General][Fixed] - Fix missing RefreshControlMock source in Jest preset Reviewed By: rshest Differential Revision: D75215731 fbshipit-source-id: 1240344c4236288f31b16513f4df16766ad1e571
This pull request was successfully merged by @huntie in aeab69a When will my fix make it into a release? | How to file a pick request? |
Summary:
Alternative to #50784.
__mocks__
(and other underscored dirs) are correctly excluded from our npm package viapackage.json#files
. But in this instance, this is a source file for thejest/
directory (Jest preset withinreact-native
), and should be included — fix by relocating.Changelog:
[General][Fixed] - Fix missing RefreshControlMock source in Jest preset
Reviewed By: rshest
Differential Revision: D75215731