Skip to content
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

docs(cli): updated documentation for --runTestsByPath command #14004

Merged
merged 5 commits into from
Mar 22, 2023

Conversation

lpizzinidev
Copy link
Contributor

Summary

Improved documentation for the --runTestsByPath CLI command added in #4411

Closes #11124

When ran with a pattern, no test is found:

```bash
jest --runTestsByPath __tests__/t
Copy link
Contributor

@mrazauskas mrazauskas Mar 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps to is worth mentioning that glob patterns can be used, if users shell is able to expand them?

For example, on Linux or macOS it is possible to run all tests in a folder like this:

jest --runTestsByPath __tests__/*

EDIT In the other hand, jest __tests__/* does the similar thing (just similar thing, because paths will be treated as patterns). Less typing. So probably there is no need to add anything. Sorry about the noise (;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem 👍
I used the test case introduced by the original commit as a guideline.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@SimenB SimenB merged commit b38d7d3 into jestjs:main Mar 22, 2023
@github-actions
Copy link

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify the documentation about --runTestsByPath config.
4 participants