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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration loading of single project does not work #6209

Closed
eclewlow opened this issue May 19, 2018 · 4 comments
Closed

Configuration loading of single project does not work #6209

eclewlow opened this issue May 19, 2018 · 4 comments

Comments

@eclewlow
Copy link

eclewlow commented May 19, 2018

馃悰 Bug Report

When projects is set to a single project, the configuration for the project will not load.
However, when projects is set to multiple projects, the configuration will load.

To Reproduce

#  In <rootDir>/jest.config.js
{
     projects: ["<rootDir>/project1/"]
}

# running jest
jest --showConfig

# configuration at    <rootDir>/project1/jest.config.js   **will not** load

However

#  In <rootDir>/jest.config.js
{
     projects: [
            "<rootDir>/project1/",
            "<rootDir>/project2/"
     ]
}
# both configurations at
#    <rootDir>/project1/jest.config.js
#    and   <rootDir>/project2/jest.config.js   **will** load

Expected behavior

Configuration loading works even if projects is set to only a single project

  System:
    OS: macOS High Sierra 10.13.4
    CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
  Binaries:
    Node: 10.1.0 - /usr/local/bin/node
    Yarn: 1.6.0 - /usr/local/bin/yarn
    npm: 6.0.1 - ~
  npmPackages:
    jest: ^22.4.3 => 22.4.3
@danvc
Copy link

danvc commented May 19, 2018

Is it already released?

@yozlet
Copy link
Contributor

yozlet commented May 30, 2018

This might be the same issue as #5866.

@SimenB
Copy link
Member

SimenB commented Dec 11, 2018

Yeah dupe of #5866, thanks!

@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