You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Pitch
The listTests option is a core feature of Jest and would be great if it support --outputFile as well
The text was updated successfully, but these errors were encountered:
This issue 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.
🚀 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
Pitch
The listTests option is a core feature of Jest and would be great if it support --outputFile as well
The text was updated successfully, but these errors were encountered: