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

projects option is not respected when only one project match #5866

Closed
samouss opened this issue Mar 25, 2018 · 4 comments
Closed

projects option is not respected when only one project match #5866

samouss opened this issue Mar 25, 2018 · 4 comments

Comments

@samouss
Copy link

samouss commented Mar 25, 2018

Do you want to request a feature or report a bug?

BUG

What is the current behavior?

When we use the projects option from the configuration file with only one project match Jest will bypass the project configuration and resolve all the test files from the root. The issue only happen with configuration file, when the option is provided to the CLI there is no issue. Here you can find an example.

What is the expected behavior?

Respect the projects option provided from the configuration file even with a single project.

Relevant files:

The issue seems to come from the jest-cli package. The projects option is not respected because this condition (see below) is not executed when only one package match.

https://github.com/facebook/jest/blob/1a487c1803124c594bdd86ee24b5949025660bc3/packages/jest-cli/src/cli/index.js#L248-L276

@thymikee
Copy link
Collaborator

Already fixed, see: #4117

@wtgtybhertgeghgtwtg
Copy link
Contributor

With [email protected], the issue is still present. That snippet he linked is still in master, too.

@SimenB
Copy link
Member

SimenB commented Dec 11, 2018

Missed this :( Let's consolidate in #7496

@SimenB SimenB closed this as completed Dec 11, 2018
@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 May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants