{"_id":"@codejedi365/jest-serial-runner","_rev":"3-78cf849c2b0bd253bbeff06dcbcd063f","name":"@codejedi365/jest-serial-runner","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.0":{"name":"@codejedi365/jest-serial-runner","version":"2.0.0","description":"Extending the Jest default runner to run tests serially - useful for integration tests","main":"index.js","repository":{"type":"git","url":"git+https://github.com/codejedi365/jest-serial-runner.git"},"keywords":["jest","jest-runner","serial","runinband"],"author":{"name":"gabrieli"},"contributors":[{"name":"codejedi365","email":"codejedi365@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/codejedi365/jest-serial-runner/issues"},"homepage":"https://github.com/codejedi365/jest-serial-runner#readme","peerDependencies":{"jest-runner":"27.x"},"publishConfig":{"access":"public"},"gitHead":"9b7e0ba2d911d21090ffdec1cfe2c491e7d133b4","_id":"@codejedi365/jest-serial-runner@2.0.0","_nodeVersion":"14.17.6","_npmVersion":"7.23.0","dist":{"integrity":"sha512-vP4uulc1EMvwh3xO1RZifTG37/geSoXmaiZQSsH1+CoAN8KxT12NYiEXNmNzpORuz6ui5MI7lLN879Lq6d2RgA==","shasum":"6bf2b53ef6027fa945c88fc7e022c1eb781cf445","tarball":"https://registry.npmjs.org/@codejedi365/jest-serial-runner/-/jest-serial-runner-2.0.0.tgz","fileCount":3,"unpackedSize":1387,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzdJECRA9TVsSAnZWagAALI0QAJJKc5EEYVAmNOJNUKgB\ncdTzscpHPgrhl8zJjHzEPoBkQ+Xyq8dUa2bbsceSNymLWISeBXUkVFP7eUev\nCjMozfD9u4IFS1m2LBkwnL8K8walaoTA04MYimYMDHg+a4zsqw0zkHmMUMDu\nqQALyX+3ItTiGSkHtOdD6NoNGef3k8Pl7bDvBQqGu+rcTGXKytWrST7FoI3R\nOZ/NLn6yOkD8ru2azumQQBGT8LveYLjdCcorswvvGZQWWoUpp/1fyLkj8wsp\n9eaEeU5MsYwN/iZMU52kyu3nTu8cS4MnUmWByf4ERUAjmNXYNu2WjPRaH/n3\ntfQZ2ddCOkIfnlI1wzPP5x9VSVjjgFyxOKbqgJmbkJXXdgNQqYSncETEg0ya\nlwPbZMb5Ju4nXxEab1qTW2NHQJSuoyaMIEfXKyIdfTgr+9Yj9HzUNmKrYOLe\nxiR9y6hkqmAgdB5JrLdvMGlL1zLilb1IZVTgT/0zmc6/jfdL2i8qHYyh2c+U\nERCZEtJmjVq8dhdO6fPb07zAMZl93e6iam1fbtV3olhnxuI8KcwrVr4bJ5/6\nsWkKG3MKQwzrKWiVs3PQG7n+0xAgkmWWLcrgIGsrmJxW7U9FM0GrjpcBqRxQ\nSPezzT2AdVcUo2hskloaGtvQtVCqtonCMwbvLnrWNwKm4W3uQyHzctJec4HW\nuGIY\r\n=BUZM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFRwlMvKRlxzJKOnjy3859rRNX4VcQUPNfsJMxklRUOQIhAM0MjypTOfY/V5Kdj3sS4oZM+NWLQKolh65GyS7Z4M5S"}]},"_npmUser":{"name":"codejedi365","email":"codejedi365@gmail.com"},"directories":{},"maintainers":[{"name":"codejedi365","email":"codejedi365@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-serial-runner_2.0.0_1634610201346_0.6710515108047375"},"_hasShrinkwrap":false},"2.0.1":{"name":"@codejedi365/jest-serial-runner","version":"2.0.1","description":"Extending the Jest default runner to run tests serially by default","main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/codejedi365/jest-serial-runner.git"},"keywords":["jest","jest-runner","serial","runinband","run-in-band"],"author":{"name":"gabrieli","email":"gabriel.ionescu.08@gmail.com"},"contributors":[{"name":"codejedi365","email":"codejedi365@gmail.com"},{"name":"Adam Uhlíř","email":"adam@uhlir.dev"}],"license":"MIT","bugs":{"url":"https://github.com/codejedi365/jest-serial-runner/issues"},"homepage":"https://github.com/codejedi365/jest-serial-runner#readme","peerDependencies":{"jest-runner":"27.x - 29.x"},"publishConfig":{"access":"public"},"gitHead":"3766cfdd551bb8bc95d7e669b80ce143be244710","_id":"@codejedi365/jest-serial-runner@2.0.1","_nodeVersion":"16.17.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-pyYAW+k+ciEbsFyL7OEIjihJfCBoDruoEE2RNrvUjARlrWkWianc0NTIVuv0YA0BSRw75IY4N+pGk5hdYNBfRw==","shasum":"3175d4c2bc9982d0b0f65114b25174e0a901ea2f","tarball":"https://registry.npmjs.org/@codejedi365/jest-serial-runner/-/jest-serial-runner-2.0.1.tgz","fileCount":4,"unpackedSize":5866,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTxzcXygkAkjRCm3bmHQOcUuS3vYzjfyiR7+QdpZetHAIgXo0AZTk8FrRgm/gGpiZS7RZjQeLIN83qIIYhanyetyU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVzUFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpF3hAAogvGr9lX1ss6Y+tpKi++VRMMKZveQqzY0qxt6Up7NoDahPCd\r\nlWMkX21AxoaQdG0N5f9HXtXwb9TwVGnqxvjSM2h3W8OzugiOBg83I3jY7Mmm\r\nPnz/S08AOfINE9YHD8gNMLixrrV6kh1O8jkTtQgNgPszy1p55wOD9LA+QWf8\r\nfi+63MxwQNMPt/TBaXi2Rm5hkoY3TBS2tlKcN15fAXuhs0M7qizmAeOToPsg\r\nh5v0kWhx9sI4sUj1pZ0hpFQqH/n/dcwiW9D00zcet9FP6U5xB50wOKlUPpVU\r\nBsJT2LyPBogPTPalMRAXtkTtoo0EHGjLX/UFwG1+P9eEucfue5El5Ngti08w\r\n5YkKXEv1WSDwbij/BDucwBg7qWR9gUMLYoJS0JFv6H+TicLlG5min794u94O\r\nn8OYCOYJF0x1dwjoGD3EexRGVEYERPHX4SWkOgShuLZz8ip8xGyuhRgmaDzS\r\nheIwH8z2ry5oG6N1a0GVW8ANZHOB/p8cbZPC8f5rpbPNZnrxZcoA87DZwrJ8\r\neKRKL9FtuQsKOrdEqBechTBsk9GFhipaIwvaaKSkwlJxbIA4PvyAJ8cQ1Pyy\r\nDHAZMPUGvazNZWG93tghkMwdTC0QXmbwC2wlMY1p52V8JCllYL7j7jWje+mv\r\nNg4P5miISZcSGQX65CclmoSv3ogu0rkFpo0=\r\n=WbA3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"codejedi365","email":"codejedi365@gmail.com"},"directories":{},"maintainers":[{"name":"codejedi365","email":"codejedi365@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-serial-runner_2.0.1_1666659589437_0.9494305661176274"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-19T02:23:21.288Z","2.0.0":"2021-10-19T02:23:21.494Z","modified":"2022-10-25T00:59:49.735Z","2.0.1":"2022-10-25T00:59:49.664Z"},"maintainers":[{"name":"codejedi365","email":"codejedi365@gmail.com"}],"description":"Extending the Jest default runner to run tests serially by default","homepage":"https://github.com/codejedi365/jest-serial-runner#readme","keywords":["jest","jest-runner","serial","runinband","run-in-band"],"repository":{"type":"git","url":"git+https://github.com/codejedi365/jest-serial-runner.git"},"contributors":[{"name":"codejedi365","email":"codejedi365@gmail.com"},{"name":"Adam Uhlíř","email":"adam@uhlir.dev"}],"author":{"name":"gabrieli","email":"gabriel.ionescu.08@gmail.com"},"bugs":{"url":"https://github.com/codejedi365/jest-serial-runner/issues"},"license":"MIT","readme":"# `jest-serial-runner`\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/@codejedi365/jest-serial-runner\">\n    <img src=\"https://img.shields.io/npm/v/@codejedi365/jest-serial-runner\" />\n  </a>\n  <a href=\"https://github.com/codejedi365/jest-serial-runner/LICENSE.md\">\n    <img src=\"https://img.shields.io/npm/l/@codejedi365/jest-serial-runner?color=lightgrey\">\n  </a>\n  <a href=\"https://github.com/codejedi365/jest-serial-runner/releases\">\n    <img src=\"https://img.shields.io/badge/&#9741-changelog-lightgrey\">\n  </a>\n  <!-- <a href=\"https://github.com/codejedi365/jest-serial-runner/actions/workflows/cicd.yml\">\n    <img src=\"https://github.com/codejedi365/jest-serial-runner/actions/workflows/cicd.yml/badge.svg\" >\n  </a> -->\n  <a href=\"https://github.com/codejedi365/jest-serial-runner/issues\">\n    <img src=\"https://img.shields.io/github/issues/codejedi365/jest-serial-runner\">\n  </a>\n  <a href=\"https://github.com/codejedi365/jest-serial-runner/pulls\">\n    <img src=\"https://img.shields.io/github/issues-pr/codejedi365/jest-serial-runner?label=PRs\">\n  </a>\n  <a href=\"https://snyk.io/advisor/npm-package/@codejedi365/jest-serial-runner\">\n    <img src=\"https://img.shields.io/snyk/vulnerabilities/npm/@codejedi365/jest-serial-runner\">\n  </a>\n</p>\n<p align=\"center\">\n  <img src=\"https://img.shields.io/npm/dependency-version/@codejedi365/jest-serial-runner/peer/jest-runner\">\n  <img src=\"https://img.shields.io/static/v1?logo=javascript&label=JavaScript&message=CommonJs\">\n  <img src=\"https://img.shields.io/github/last-commit/codejedi365/jest-serial-runner\">\n</p>\n<p align=\"center\">\n  <!-- <a href=\"https://github.com/semantic-release/semantic-release\">\n    <img src=\"https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\" >\n  </a> -->\n  <img src=\"https://img.shields.io/badge/Contributors-PR's_welcome-pink\">\n</p>\n<p align=\"center\">\n  Extending the <a href=\"https://jestjs.io/\">Jest</a>\n  default runner to run tests serially by default\n</p>\n\n---\n\nSimple wrapper over the default Jest runner that forces serial execution of test files. This is equivalent to running with `--runInBand` flag by default.\n\n**Why?** Sometimes you have limited/restricted resources on the test machine (like in a docker container) and running the default `jest-runner` always runs in parallel unless specified otherwise. Integration tests are another scenario where running concurrent instances causes issues so using this runner ensures only 1 test runs at a time.\n\n## Installation\n\n```sh\nnpm install @codejedi365/jest-serial-runner --save-dev\n```\n\n## Usage\n\n**Option 1:** Specify the runner in your `Jest` config\n\n```jsonc\n/* jest.config.json */\n{\n    // ...\n    \"runner\": \"@codejedi365/jest-serial-runner\"\n    // ...\n}\n```\n\n**Option 2:** To specify the runner for a subset of files such as for integration tests.\n\n```js\n/* jest.config.js */\nmodule.exports = {\n    // ...\n    projects: [\n        {\n            // Uses the jest default runner for specification testing\n            displayName: \"UNIT\",\n            testMatch: [\"<rootDir>/src/**/__tests__/*.spec.ts\"]\n        },\n        {\n            // Uses the serial runner instead for integration test files\n            displayName: \"INTEGRATION\",\n            runner: \"@codejedi365/jest-serial-runner\",\n            testMatch: [\"<rootDir>/tests/**/*.integration-test.ts\"]\n        }\n    ]\n}\n```\n\n## Contributors\n\nPR's & Issue contributions welcome! Please adhere to\n[contributing guidelines](./CONTRIBUTING.md)\nor your submission will be closed or delayed.\n\n## Acknowledgements\n\n**Origin:** [gabrieli/jest-serial-runner](https://github.com/gabrieli/jest-serial-runner)\n\n**Contributors**\n\n1. [Adam Uhlíř](https://github.com/AuHau)\n","readmeFilename":"README.md"}