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

Stops calling existsSync on object configs #7607

Merged
merged 2 commits into from
Jan 18, 2019
Merged

Stops calling existsSync on object configs #7607

merged 2 commits into from
Jan 18, 2019

Conversation

arcanis
Copy link
Contributor

@arcanis arcanis commented Jan 11, 2019

Summary

The previous code was calling existsSync by passing a root to it, which could either be a string or a Jest configuration object. The existsSync implementation currently accepts both, but this behavior is frowned upon and might be deprecated in later Node releases. This diff simply checks whether the root is a path before calling existsSync on it.

cc @rubennorte

Test plan

Not easy to test since it currently works even without the PR 😄

@rubennorte
Copy link
Contributor

Looks good to me. @arcanis please update the changelog ;)

@rubennorte rubennorte self-requested a review January 11, 2019 11:22
@arcanis
Copy link
Contributor Author

arcanis commented Jan 11, 2019

👌

@SimenB SimenB merged commit 189bedc into master Jan 18, 2019
@SimenB SimenB deleted the arcanis-patch-1 branch January 18, 2019 12:47
captain-yossarian pushed a commit to captain-yossarian/jest that referenced this pull request Jul 18, 2019
@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 12, 2021
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.

4 participants