-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add CLI command to output a list of tests for better testNamePattern usage #2901
Comments
What should happen if the test name is dynamic? How can we know the name in that case? Or should we just run all test files without running |
yea, this is what mocha and qunit do |
So, basically to have a command:
|
Exactly, yeah |
Is there an output that you would expect with this command? Jest just prints file names. |
depends on output format, I suppose. For stdout:
for json:
|
Clear and concise description of the problem
When using
describe
, it can be hard to narrow tests based on files/describe blocks -- especially when test names within describe blocks / test files may be repeated.Suggested solution
As a debug utility, it could be great to be able to output the list of tests without running them so that folks can better utilize
--testNamePattern
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: