-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Enterprise Search] Allow jest script to run on individual files #96589
Conversation
This allows the jest test script for the enterprise_search plugin to run on files, and well as directories. Previously, a trailing slash was always appended, whether it was a file name, or a directory. It now maintains whatever a user originally inputted.
BTW, it does looks like 7.x has the jest.sh script so we should probably backport this still? 🤷 |
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 for doing this! Looks good to me but I'm deferring to Constance since she left some comments
[optional / I can do this in a separate PR if you prefer] I totally brainfarted when testing this and tripped up on whether I should be testing a |
@constancecchen Good call! I didn't realize we had a README about that. I have to update from master anyway so I'll make that change. a3a0142 |
Looks terrific - thanks a million! 🙇♀️ |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
) (#96852) Co-authored-by: Jason Stoltzfus <[email protected]>
Summary
This allows the jest test script for the enterprise_search plugin to run on files, as well as directories.
Example:
I tested with file names (both
test.tsx
,test.ts
), and folder with and without a trailing/
. Everything seems to work as usual.For maintainers