{"name":"jest-circus","version":"21.3.0-alpha.1e3ee68e","license":"MIT","_id":"jest-circus@21.3.0-alpha.1e3ee68e","maintainers":[{"name":"mjesun","email":"mjesun@hotmail.com"},{"name":"aaronabramov","email":"aaron@abramov.io"},{"name":"jeanlauliac","email":"jean@lauliac.com"},{"name":"cpojer","email":"christoph.pojer@gmail.com"}],"homepage":"https://github.com/facebook/jest#readme","bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"9588de7636beae6767573c958849626accc2be3d","tarball":"http://registry-npm.ywwl.com/jest-circus/download/jest-circus-21.3.0-alpha.1e3ee68e.tgz","integrity":"sha512-tk/yOv0xCAVix/RD4pXglt7MQ+mjztL1ZdmLGfmtiiRMLyYBuNiHpCah7mkR3Fyi5SE6MS0f7HzOE5RWYppbig==","signatures":[{"sig":"MEUCIQD3yberDGj8LBvhvfdx1p3EOBdvpFRzeXYQpQQO/6DsmgIgSEdfdUsnDcx+4WptlQP8IDw+QeP048Ql57cBlUyf3tc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":15241,"noattachment":false,"key":"/jest-circus/-/jest-circus-21.3.0-alpha.1e3ee68e.tgz"},"main":"build/index.js","_npmUser":{"name":"cpojer","email":"christoph.pojer@gmail.com"},"repository":{"url":"git+https://github.com/facebook/jest.git","type":"git"},"_npmVersion":"5.3.0","directories":{},"_nodeVersion":"8.4.0","dependencies":{"chalk":"^2.0.1","expect":"21.3.0-alpha.1e3ee68e","jest-diff":"21.3.0-alpha.1e3ee68e","jest-snapshot":"21.3.0-alpha.1e3ee68e","jest-message-util":"21.3.0-alpha.1e3ee68e","jest-matcher-utils":"21.3.0-alpha.1e3ee68e"},"devDependencies":{"jest-runtime":"21.3.0-alpha.1e3ee68e"},"_npmOperationalInternal":{"tmp":"tmp/jest-circus-21.3.0-alpha.1e3ee68e.tgz_1506608464796_0.49522168724797666","host":"s3://npm-registry-packages"},"readme":"[type-definitions]: https://github.com/jestjs/jest/blob/main/packages/jest-types/src/Circus.ts\n\n<h1 align=\"center\">\n  <img src=\"https://jestjs.io/img/jest.png\" height=\"150\" width=\"150\"/>\n  <img src=\"https://jestjs.io/img/circus.png\" height=\"150\" width=\"150\"/>\n  <p align=\"center\">jest-circus</p>\n  <p align=\"center\">The next-gen test runner for Jest</p>\n</h1>\n\n## Overview\n\nCircus is a flux-based test runner for Jest that is fast, maintainable, and simple to extend.\n\nCircus allows you to bind to events via an optional event handler on any [custom environment](https://jestjs.io/docs/configuration#testenvironment-string). See the [type definitions][type-definitions] for more information on the events and state data currently available.\n\n```ts\nimport type {Event, State} from 'jest-circus';\nimport {TestEnvironment as NodeEnvironment} from 'jest-environment-node';\n\nclass MyCustomEnvironment extends NodeEnvironment {\n  //...\n\n  async handleTestEvent(event: Event, state: State) {\n    if (event.name === 'test_start') {\n      // ...\n    }\n  }\n}\n```\n\nMutating event or state data is currently unsupported and may cause unexpected behavior or break in a future release without warning. New events, event data, and/or state data will not be considered a breaking change and may be added in any minor release.\n\nNote, that `jest-circus` test runner would pause until a promise returned from `handleTestEvent` gets fulfilled. **However, there are a few events that do not conform to this rule, namely**: `start_describe_definition`, `finish_describe_definition`, `add_hook`, `add_test` or `error` (for the up-to-date list you can look at [SyncEvent type in the types definitions][type-definitions]). That is caused by backward compatibility reasons and `process.on('unhandledRejection', callback)` signature, but that usually should not be a problem for most of the use cases.\n\n## Installation\n\n> Note: As of Jest 27, `jest-circus` is the default test runner, so you do not have to install it to use it.\n\nInstall `jest-circus` using yarn:\n\n```bash\nyarn add --dev jest-circus\n```\n\nOr via npm:\n\n```bash\nnpm install --save-dev jest-circus\n```\n\n## Configure\n\nConfigure Jest to use `jest-circus` via the [`testRunner`](https://jestjs.io/docs/configuration#testrunner-string) option:\n\n```json\n{\n  \"testRunner\": \"jest-circus/runner\"\n}\n```\n\nOr via CLI:\n\n```bash\njest --testRunner='jest-circus/runner'\n```\n","publish_time":1506608465850,"_cnpm_publish_time":1506608465850,"dist-tags":{"latest":"30.5.2","next":"30.0.0-rc.1"}}