{"id":13684348,"url":"https://github.com/macklinu/danger-plugin-jest","last_synced_at":"2025-04-30T20:33:52.299Z","repository":{"id":148762760,"uuid":"92303124","full_name":"macklinu/danger-plugin-jest","owner":"macklinu","description":"Danger plugin for Jest","archived":false,"fork":false,"pushed_at":"2020-04-02T13:27:43.000Z","size":1860,"stargazers_count":23,"open_issues_count":17,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T19:15:19.192Z","etag":null,"topics":["danger","danger-plugin","jest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/macklinu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-05-24T14:43:15.000Z","updated_at":"2022-07-14T00:36:16.000Z","dependencies_parsed_at":"2023-05-28T21:30:34.481Z","dependency_job_id":null,"html_url":"https://github.com/macklinu/danger-plugin-jest","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macklinu%2Fdanger-plugin-jest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macklinu%2Fdanger-plugin-jest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macklinu%2Fdanger-plugin-jest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macklinu%2Fdanger-plugin-jest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macklinu","download_url":"https://codeload.github.com/macklinu/danger-plugin-jest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251777763,"owners_count":21642220,"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":["danger","danger-plugin","jest"],"created_at":"2024-08-02T14:00:32.470Z","updated_at":"2025-04-30T20:33:52.040Z","avatar_url":"https://github.com/macklinu.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":["TypeScript (danger-js)"],"readme":"# danger-plugin-jest\n\n[![Build Status](https://travis-ci.org/macklinu/danger-plugin-jest.svg?branch=master)](https://travis-ci.org/macklinu/danger-plugin-jest)\n[![npm version](https://badge.fury.io/js/danger-plugin-jest.svg)](https://badge.fury.io/js/danger-plugin-jest)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n\u003e [Danger](https://github.com/danger/danger-js) plugin for Jest\n\n## Usage\n\n### Setup Jest\n\nThis Danger plugin relies on modifying your Jest configuration slightly on CI to also output a JSON file of the results.\n\nYou need to make the `yarn jest` command include: `--outputFile test-results.json --json`. This will run your tests\nlike normal, but will also create a file with the full test results after.\n\n\u003e You may also want to add the JSON output file to your `.gitignore`, since it doesn't need to be checked into source control.\n\n### Setup Danger\n\nInstall this Danger plugin:\n\n```sh\nyarn add danger-plugin-jest --dev\n```\n\nBy default, this package will assume you've set the filename as `test-results.json`, but you can use any path.\n\n```js\n// dangerfile.js\nimport path from 'path'\nimport jest from 'danger-plugin-jest'\n\n// Default\njest()\n// Custom path\njest({ testResultsJsonPath: path.resolve(__dirname, 'tests/results.json') })\n```\n\nSee [`src/index.ts`](https://github.com/macklinu/danger-plugin-jest/blob/master/src/index.ts) for more details.\n\n## Changelog\n\nSee the GitHub [release history](https://github.com/macklinu/danger-plugin-jest/releases).\n\n## Development\n\nInstall [Yarn](https://yarnpkg.com/en/), and install the dependencies - `yarn install`.\n\nRun the [Jest](https://facebook.github.io/jest/) test suite with `yarn test`.\n\nThis project uses [semantic-release](https://github.com/semantic-release/semantic-release) for automated NPM package publishing.\n\n:heart:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacklinu%2Fdanger-plugin-jest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacklinu%2Fdanger-plugin-jest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacklinu%2Fdanger-plugin-jest/lists"}