{"_id":"@36node/jest-runner-newman","_rev":"6-ddb164710c7f442fd78e77fa290434b2","name":"@36node/jest-runner-newman","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.5":{"name":"@36node/jest-runner-newman","version":"1.0.5","description":"A Jest runner for Postman's Newman CLI tool","main":"src/index.js","scripts":{"commit":"git-cz","server":"node examples/app","test":"is-ci 'test:ci' 'test:dev'","test:ci":"start-server-and-test server 1337 test:once","test:dev":"start-server-and-test server 1337 test:watch","test:once":"jest","test:watch":"npm run test:once -- --watch","semantic-release":"semantic-release"},"dependencies":{"create-jest-runner":"0.4.1"},"publishConfig":{"access":"public"},"devDependencies":{"commitizen":"3.0.5","conventional-changelog":"3.0.5","conventional-changelog-cli":"2.0.11","cz-conventional-changelog":"2.1.0","doctoc":"1.4.0","eslint":"5.11.0","eslint-config-prettier":"3.3.0","eslint-plugin-prettier":"3.0.0","husky":"1.2.1","is-ci-cli":"1.1.1","jest":"23.6.0","jest-runner-eslint":"0.7.1","lint-staged":"8.1.0","newman":"4.2.3","prettier":"1.15.3","semantic-release":"^15.13.1","start-server-and-test":"1.7.11"},"peerDependencies":{"jest":">=22.0.0","newman":"*"},"keywords":["jest","jest-runner","postman","newman"],"author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fixate/jest-runner-newman.git"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"bugs":{"url":"https://github.com/fixate/jest-runner-newman/issues"},"homepage":"https://github.com/fixate/jest-runner-newman#readme","_id":"@36node/jest-runner-newman@1.0.5","_nodeVersion":"14.3.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nYtTsee3XR+9A6RcWv0Pcu+VOW+VuNnyG7iRvLdKTZcUU1ET91mzAVKCpIbhMBDxUdml5jmlXP/t2r/HUx1QJQ==","shasum":"f901d450762afc2018d5b49c3bfaaa84791e2cd4","tarball":"https://registry.npmjs.org/@36node/jest-runner-newman/-/jest-runner-newman-1.0.5.tgz","fileCount":7,"unpackedSize":6175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4CH0CRA9TVsSAnZWagAAx9IP/i0a4EANAECIBBaLnpI9\n+V7/nOglSa7R56qHKwrZWwlyGbNo0pFUn5J8JopMyjVq1lr2zuYEDOJnQh2M\npGnVoHGlPmJecsoxkx3SLX5fPgN+YOmxK3AWuFUMQWKzxGlprsiVUEN97nyk\nli34gMPmgXqDMaK+nvjPb0hjvyJX3Av+ByWbi0w10skGDbmlt0RP5HrXPEPZ\nSwyfZ79pt9AUtc6GiEdQYgqhIljcTa+w7SMH1loB6ssy08alJjHQ0LHGwZy7\nb5CnwW3pqglUAc/8wasCSUY9djeCGguBCu5F71aUmsNukNTqiuNySXoBeui7\n++mHR3IMzsnrrzWKpHWHLfIVpyoKMseK0+5jdPiAKz2QS+ilTiYEy8H27RRL\nFMmMsABu0PjODtN9GB1bxnO/VnBqHEXL74hwjdTrorSBM9t2BM+Z7WtaV1W+\nUle0b41Lhchiu3XTUZW8PFs2CopASSp+eXaQtDoX9d8bjveeoFqZv5jRb9fJ\nOBMj4IDrPq3IxwxOCaAjPuTB2DsyuoyXDhO0nqXRFr//1SbUAMpCtVS/I4AI\nuUvmLoawPUMvVLlmUWjQrw8X1QOWk5+uKIWeUbrjmUSQFnaCyjGsI1I0Q1K3\nVRW9WM2ISrI5/BYhI9wcl30K0+oJk3hKTu1khzybAf/+PJUiPVgRuqElmt3N\ngRHO\r\n=vI9i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGUXiRq0/pDF5FJX0EYHONOSkqUP46kpDZ6JuIoYenqAAiEA8YIhiU/rw5EbV6DESrBliL1J2sVHClWOK5v4F/xpUak="}]},"maintainers":[{"name":"zzswang","email":"zzswang@gmail.com"},{"name":"tohsakarin","email":"1023770070@qq.com"},{"name":"frendkao","email":"frendkao@gmail.com"},{"name":"hauy","email":"hauy@163.com"}],"_npmUser":{"name":"zzswang","email":"zzswang@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-runner-newman_1.0.5_1591747059509_0.43958367139839316"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-09T23:57:39.422Z","1.0.5":"2020-06-09T23:57:39.659Z","modified":"2023-11-24T02:06:21.680Z"},"maintainers":[{"email":"xuna08@gmail.com","name":"xuna08"},{"email":"zzswang@gmail.com","name":"zzswang"},{"email":"hauy@163.com","name":"hauy"},{"email":"walle@36node.com","name":"36node-robot"}],"description":"A Jest runner for Postman's Newman CLI tool","homepage":"https://github.com/fixate/jest-runner-newman#readme","keywords":["jest","jest-runner","postman","newman"],"repository":{"type":"git","url":"git+https://github.com/fixate/jest-runner-newman.git"},"bugs":{"url":"https://github.com/fixate/jest-runner-newman/issues"},"license":"MIT","readme":"# Jest Runner Newman\n\nFork from https://github.com/fixate/jest-runner-newman\n\n<p align=\"center\">\n  <img src=\"assets/jest-runner-newman-demo.gif\" width=\"50%\" alt=\"cli example of jest-runner-newman\">\n</p>\n\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n\n**Table of Contents**\n\n- [Jest Runner Newman](#jest-runner-newman)\n  - [Purpose](#purpose)\n  - [Install](#install)\n  - [Running tests](#running-tests)\n  - [License](#license)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\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: ['<rootDir>/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) => {\n  handleResult(err, result);\n\n  // anything else you want\n})\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}