Skip to content

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

@tanichols-zz

Description

@tanichols-zz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions