-
-
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
Support outputFile option for listTests option #14944
Support outputFile option for listTests option #14944
Conversation
|
✅ Deploy Preview for jestjs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
works for me, thanks!
Could you add a changelog entry and an integration test?
Update the eslint-disable for a line Co-authored-by: Simen Bekkhus <[email protected]>
This reverts commit 9b3939d.
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! All that's missing is @mkenchugonde signing the CLA 🙂
@mkenchugonde hello! 👋 could you sign the CLA? 🙂 |
I am not sure how I ended up pushing commits from @mkenchugonde ( I intend to use my personal account @manoraj ). I have signed the CLA from @mkenchugonde, but it needs approval from the organization I guess. I will wait for one or two days before seeking help for next steps. |
If it's all you, you should be able to just rebase and change author or squash the commits |
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
Added to Feature Proposal as well -> #14943
🚀 Feature Proposal
Right now, the --listTests option will just write the list of tests to the console. My proposal is to use the --outputFile option along with the --listTests option to write the output to the file.
Motivation
We wanted to use the list of tests in the custom sequencers. This feature will help to store the list in the file so that the sequencers can access it.
Note that this is just my usecase. There may be different use cases as well.
Example
Pass --outputFile=test-lists.json along with --listTests
yarn test --listTests --json --outputFile=test-lists.json