Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Clarify the documentation about --runTestsByPath config. #11124

Closed
mrdulin opened this issue Feb 26, 2021 · 4 comments · Fixed by #14004
Closed

Clarify the documentation about --runTestsByPath config. #11124

mrdulin opened this issue Feb 26, 2021 · 4 comments · Fixed by #14004

Comments

@mrdulin
Copy link

mrdulin commented Feb 26, 2021

🚀 Feature Proposal

Motivation

Clarify the documentation about --runTestsByPath config. Please provide an example. The TS type of this config is boolean in source code, but I saw some people use it like jest --runTestsByPath ./__tests__/tests/over/here/*_test.ts, should the data type of it be a string represents the file path?

Example

I can run only the tests that were specified with their exact paths like this:

jest "./index.test.jsx"

Not clear about the function of --runTestsByPath config.

@github-actions
Copy link

This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Feb 26, 2022
@SimenB
Copy link
Member

SimenB commented Feb 26, 2022

See #4411 where it was added - it's not change how matching works, so boolean is correct. We should definitely document this better, though! Wanna send a PR?

@alceil
Copy link

alceil commented Mar 31, 2022

I would like to take up this issue @SimenB

@github-actions
Copy link

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.

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

Successfully merging a pull request may close this issue.

3 participants