{"id":16222157,"url":"https://github.com/hugodf/jest-ignore-coverage","last_synced_at":"2025-03-19T11:31:18.645Z","repository":{"id":44131145,"uuid":"191058116","full_name":"HugoDF/jest-ignore-coverage","owner":"HugoDF","description":"Examples of how to ignore files/functions/statements for coverage","archived":false,"fork":false,"pushed_at":"2023-01-03T23:46:10.000Z","size":273,"stargazers_count":16,"open_issues_count":19,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T18:33:58.394Z","etag":null,"topics":["coverage","coverage-testing","jest","nodejs-testing","testing"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HugoDF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-09T21:40:57.000Z","updated_at":"2022-10-14T14:04:01.000Z","dependencies_parsed_at":"2023-02-01T14:01:15.885Z","dependency_job_id":null,"html_url":"https://github.com/HugoDF/jest-ignore-coverage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fjest-ignore-coverage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fjest-ignore-coverage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fjest-ignore-coverage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fjest-ignore-coverage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HugoDF","download_url":"https://codeload.github.com/HugoDF/jest-ignore-coverage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243989109,"owners_count":20379648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coverage","coverage-testing","jest","nodejs-testing","testing"],"created_at":"2024-10-10T12:11:28.418Z","updated_at":"2025-03-19T11:31:18.319Z","avatar_url":"https://github.com/HugoDF.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jest Ignore Coverage\n\nTo see all the following in action, run `yarn install` (or `npm install`) followed by `yarn test` (or `npx jest --coverage`) to collect coverage.\n\n## Exclude file(s) from Jest coverage using configuration\n\nSee [./package.json](./package.json) `testPathIgnorePatterns`. It ignores the contents of `src/testignore`, which actually just contains a failing test in [./src/testignore/ignored-test.test.js](./src/testignore/ignored-test.test.js).\n\n\nSee [./package.json](./package.json) `collectCoverageFrom`. It does not collect coverage from [./src/config-ignore-me.js](./src/config-ignore-me.js).\n\n## Exclude file from Jest coverage at the file level\n\nSee [./src/comment-ignored.js](./src/comment-ignored.js). It uses the comment notation to ignore the file.\n\n## Exclude function or statement from Jest coverage\n\nSee [./src/snippet.js]. It showcases the `istanbul ignore next` and `istanbul ignore [type]` syntax (in this case `istanbul ignore else`).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugodf%2Fjest-ignore-coverage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugodf%2Fjest-ignore-coverage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugodf%2Fjest-ignore-coverage/lists"}