Exclude a Single file from test coverage

Viewed 293

Is it possible to tell jest to exclude a specific File from the test coverage report? I am not looking for .skip function

1 Answers
  "jest": {
    "collectCoverageFrom": [
      "src/**/*.{js,jsx}",
      "!src/file.ext" // <-- use the negation operator to exclude files or paths
    ]
  }
Related