Skip to content

Conversation

@cpojer
Copy link
Member

@cpojer cpojer commented Apr 25, 2016

This fixes #914.

This cache was added for performance but we have since made other optimizations and these global caches can now be local in the Runtime instances again.

Test Plan:
a couple of full test runs on www.

@cpojer
Copy link
Member Author

cpojer commented Apr 25, 2016

@facebook-github-bot import

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to Phabricator to review.

@ghost ghost closed this in f9ef9e2 Apr 25, 2016
@cpojer cpojer mentioned this pull request Apr 26, 2016
ghost pushed a commit that referenced this pull request Apr 26, 2016
Summary:
Fixes #935 and a bug I introduced in #934.

I also updated it so that `fastpath` is only used in Node < 5. Node 5.7 and upwards have a fast implementation of the `path` module, so it should no longer be necessary then.
Closes #937

Reviewed By: kentaromiura

Differential Revision: D3223697

fb-gh-sync-id: c5010985d5608ed012b99a272d6d45a47514c0c3
fbshipit-source-id: c5010985d5608ed012b99a272d6d45a47514c0c3
ghost pushed a commit that referenced this pull request Apr 27, 2016
Summary:
We removed global mock caches in #934 but for some reason I forgot to move this cache in the constructor. We only unmock the setup files a single time which isn't useful for subsequent tests. This makes it so we do this every time. It shouldn't have a big perf impact.
Closes #942

Differential Revision: D3229346

fb-gh-sync-id: f58a2b5cc65160c2d0a63e874bb9257d3218f1a6
fbshipit-source-id: f58a2b5cc65160c2d0a63e874bb9257d3218f1a6
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Module mocking system remembers some state from one test to the next

2 participants