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

Error: Unknown config option "coverageThreshold" #1436

Closed
perfectfoolish opened this issue Aug 16, 2016 · 3 comments
Closed

Error: Unknown config option "coverageThreshold" #1436

perfectfoolish opened this issue Aug 16, 2016 · 3 comments

Comments

@perfectfoolish
Copy link

I configure minimum threshold enforcement for coverage results as below

{
  ...
  "jest": {
    "coverageThreshold": {
      "global": {
        "branches": 50,
        "functions": 50,
        "lines": 50,
        "statements": 50
      }
    }
  }
}

Packages I used

"react": "^15.0.1",
 "jest-cli": "^12.0.2",
node : v5.6.0

I got this error

Error: Unknown config option "coverageThreshold" with value "[object Object]". This is either a typing error or another user mistake and fixing it will remove this message.
@cpojer
Copy link
Member

cpojer commented Aug 16, 2016

Please update Jest to 14.

@cpojer cpojer closed this as completed Aug 16, 2016
@perfectfoolish
Copy link
Author

The issue have solved.
Thank you very much.

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

2 participants