{"id":15062784,"url":"https://github.com/fixate/jest-runner-newman","last_synced_at":"2025-08-11T13:09:08.826Z","repository":{"id":57093634,"uuid":"162922847","full_name":"fixate/jest-runner-newman","owner":"fixate","description":"A Jest runner for Postman's Newman CLI tool","archived":false,"fork":false,"pushed_at":"2019-01-13T13:30:43.000Z","size":5002,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-21T12:34:02.731Z","etag":null,"topics":[],"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/fixate.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":"2018-12-23T20:46:09.000Z","updated_at":"2021-10-26T14:06:40.000Z","dependencies_parsed_at":"2022-08-22T20:40:34.622Z","dependency_job_id":null,"html_url":"https://github.com/fixate/jest-runner-newman","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/fixate/jest-runner-newman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixate%2Fjest-runner-newman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixate%2Fjest-runner-newman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixate%2Fjest-runner-newman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixate%2Fjest-runner-newman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fixate","download_url":"https://codeload.github.com/fixate/jest-runner-newman/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixate%2Fjest-runner-newman/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269891868,"owners_count":24491798,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-09-24T23:46:29.464Z","updated_at":"2025-08-11T13:09:08.801Z","avatar_url":"https://github.com/fixate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jest Runner Newman\n\n[![Build Status](https://travis-ci.org/fixate/jest-runner-newman.svg?branch=master)](https://travis-ci.org/fixate/jest-runner-newman)\n[![npm version](https://badge.fury.io/js/jest-runner-newman.svg)](https://badge.fury.io/js/jest-runner-newman)\n\nA Jest runner for Postman's [Newman](https://github.com/postmanlabs/newman) CLI tool.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/jest-runner-newman-demo.gif\" width=\"50%\" alt=\"cli example of jest-runner-newman\"\u003e\n\u003c/p\u003e\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n**Table of Contents**\n\n- [Purpose](#purpose)\n- [Install](#install)\n- [Running tests](#running-tests)\n- [License](#license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Purpose\n\nEasily run automated tests for your Postman collections using Newman and Jest.\n\n## Install\n\n```bash\n$ npm install -D jest-runner-newman newman\n```\n\n```javascript\n# jest.newman.js\n\nmodule.exports = {\n  displayName: 'newman',\n  testMatch: ['\u003crootDir\u003e/path/to/tests/**.test.js'],\n  runner: 'jest-runner-newman',\n}\n```\n\n```bash\nnpx jest -c jest.newman.js\n```\n\n## Running tests\n\n`jest-runner-newman` runs Newman tests in Node child processes. In addition to\nrunning a Newman test via the `newman` module, each test needs to send the\nparent process the result of the test run. To make this easier,\n`jest-runner-newman` exports a separate module to specifically handle that:\n\n```javascript\n# my-collection.test.js\n\nconst {handleResult} = require('jest-runner-newman/handle-result')\nconst newman = require('newman');\n\nmodule.exports = newman.run({\n  collection: `[collection-url]`,\n  environment: `[environment-url]`,\n  reporters: ['cli'],\n  // any other newman configs\n}, (err, result) =\u003e {\n  handleResult(err, result);\n\n  // anything else you want\n})\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffixate%2Fjest-runner-newman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffixate%2Fjest-runner-newman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffixate%2Fjest-runner-newman/lists"}