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

Feature Request: default jest configuration in package.json #4341

Closed
tanichols-zz opened this issue Apr 22, 2018 · 1 comment
Closed

Feature Request: default jest configuration in package.json #4341

tanichols-zz opened this issue Apr 22, 2018 · 1 comment

Comments

@tanichols-zz
Copy link

tanichols-zz commented Apr 22, 2018

Would it be possible to add a default jest configuration to the generated package.json? Something like the following:

"jest": {
  "collectCoverageFrom": [
    "src/**/*.{js,jsx}",
    "!src/registerServiceWorker.js",
    "!src/index.js"
  ],
  "coverageThreshold": {
    "global": {
      "branches": 80,
      "functions": 80,
      "lines": 80,
      "statements": -10
    }
  }
}

As I see it, this would make it easily discoverable that the default setup supports a jest configuration in package.json.

@bugzpodder
Copy link

I don't feel strongly about implementing this. Documenting jest is what the User Guide is for. Also, these defaults are not sensible especially considering the number of react apps. For some users they just want to get start to build things without worrying about total coverage.

@lock lock bot locked and limited conversation to collaborators Jan 19, 2019
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