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

Option "projects" in configuration file does not work #5253

Closed
tobernguyen opened this issue Jan 8, 2018 · 5 comments
Closed

Option "projects" in configuration file does not work #5253

tobernguyen opened this issue Jan 8, 2018 · 5 comments

Comments

@tobernguyen
Copy link

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

What is the current behavior?: Jest won't run when I include projects option in the configuration file and pass an array of Object into that. Just like the example in docs: https://facebook.github.io/jest/docs/en/configuration.html#projects-array-string-projectconfig

{
  "projects": [
    {
      "displayName": "test"
    }
  ]
}

Returned with error:

TypeError: glob pattern string required
    at new Minimatch (/Users/admin/code/coin-backend/node_modules/minimatch/minimatch.js:116:11)
    at setopts (/Users/admin/code/coin-backend/node_modules/glob/common.js:118:20)
    at new GlobSync (/Users/admin/code/coin-backend/node_modules/glob/sync.js:40:3)
    at Function.globSync [as sync] (/Users/admin/code/coin-backend/node_modules/glob/sync.js:26:10)
    at value.map.reduce (/Users/admin/code/coin-backend/node_modules/jest-config/build/normalize.js:440:63)
    at Array.reduce (<anonymous>)
    at Object.keys.reduce (/Users/admin/code/coin-backend/node_modules/jest-config/build/normalize.js:436:9)
    at Array.reduce (<anonymous>)
    at normalize (/Users/admin/code/coin-backend/node_modules/jest-config/build/normalize.js:352:24)
    at readConfig (/Users/admin/code/coin-backend/node_modules/jest-config/build/index.js:61:50)

Reproduce: https://repl.it/repls/ImpeccablePortlyDiscus

What is the expected behavior?: It should able to load projects with different setting for each project.

Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.
:
yarn: v1.0.2
npm 5.3.0
node: v8.6.0
OS: OS X 10.12.6

@thymikee
Copy link
Collaborator

thymikee commented Jan 8, 2018

This feature is not yet released, see #5176 and Changelog: https://github.com/facebook/jest/blob/master/CHANGELOG.md

@thymikee thymikee closed this as completed Jan 8, 2018
@SimenB
Copy link
Member

SimenB commented Jan 8, 2018

We should probably update the docs stating that it's not released yet (I want #5190 really bad, so much confusion around it)

@ooade
Copy link

ooade commented Jan 26, 2018

I hope it get released soon 😸
And, I think it's kinda misleading to state a non-released feature in the doc tho 😅

@SimenB
Copy link
Member

SimenB commented Jan 26, 2018

It has been released now, though

@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 13, 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