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

Create shared mock for scheduler #4313

Closed
wants to merge 3 commits into from

Conversation

captbaritone
Copy link
Contributor

The version of scheduler we get internally is always the latest. However, on GitHub we get the version is a transitive dependency from react-test-renderer.

Some methods in the unstable_mock have been renamed between these two versions. This mock file provides a centralized place to reconcile those differences so that the same tests can work both internally and on GitHub.

I also tried manually upgrading react-test-renderer to the @experimental tag in the hopes of getting GitHub to use the same version we have internally, and then transitively inherit the more recent version of scheduler. Unfortunately that created many test failures for reasons I don't currently fully understand.

@facebook-github-bot
Copy link
Contributor

@captbaritone has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@captbaritone has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Ignore mocks dir when testing dependencies

Don't use __mocks__

Revert change to testDependencies

tfoo
@facebook-github-bot
Copy link
Contributor

@captbaritone has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@captbaritone has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Co-authored-by: Eoin Hennessy <eoin.hennessy@gmail.com>
@facebook-github-bot
Copy link
Contributor

@captbaritone has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@captbaritone merged this pull request in cc1daa1.

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.

3 participants