-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
chore: refactor tests + clean up unused code in SearchSource
#12526
Conversation
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.
thanks! lovely cutting and DRYing
Had to revert the |
Yeah, we squash on merge, but lots of commit within the PR is nice 👍 There are some failing tests, btw |
These tests test 'testRegex' and 'testMatch', which don't use findMatchingTests at runtime, so this commit updates the tests to use getTestPaths, which is the correct entrypoint for these options.
Ok, hopefully I've fixed the tests. FYI locally, the
but CI fails when making this change. Not sure why the discrepancy between local + CI |
@brandon-leapyear yeah, unfortunately that rule behaves differently between node version (only considered "core" when it exists in the runtime.). Using Node 16 (maybe 14?) locally should make eslint agree with current formatting 🙂 |
@SimenB Not sure what that CI failure is. The test passes locally for me, and it doesn't seem related to my changes |
yeah: #12521 (comment) 🙁 |
Thanks for this cleanup though, looks great! |
SearchSource
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. |
Summary
These areas of the code were brought to my attention as part of #12519, but are good improvements independent of any other feature work.
Test plan
See the commit messages for the reasoning of each refactoring/clean up