{"name":"jest-circus","version":"30.0.0-beta.6","license":"MIT","_id":"jest-circus@30.0.0-beta.6","maintainers":[{"name":"aaronabramov","email":"aaron@abramov.io"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"rickhanlonii","email":"rickhanlonii@gmail.com"},{"name":"openjs-operations","email":"operations@openjsf.org"},{"name":"cpojer","email":"christoph.pojer@gmail.com"}],"dist":{"shasum":"3f00f85c8593f6a7cc94a6bdabfeb064d348daab","tarball":"http://registry-npm.ywwl.com/jest-circus/download/jest-circus-30.0.0-beta.6.tgz","fileCount":8,"integrity":"sha512-Dy+ERB8nlJtEu9jzMNDpRBoCzGYYoJLNjCaIEarPJtgV5qutjtZwCxV49a2TuGdwff13TBtDuHrx2iRBOaFMEg==","signatures":[{"sig":"MEUCIQCVfaOCX7w6SW3sup6A9Ap+VyTv8uc+dw0muO+m81TV0QIgAY5bBF41T6yEwfsUZOtXEHhnxbwJmfnc4+Pwhcy2akY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":142263,"size":29568,"noattachment":false,"key":"/jest-circus/-/jest-circus-30.0.0-beta.6.tgz"},"main":"./build/index.js","types":"./build/index.d.ts","engines":{"node":"^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"},"exports":{".":{"types":"./build/index.d.ts","import":"./build/index.mjs","default":"./build/index.js","require":"./build/index.js"},"./runner":"./build/runner.js","./package.json":"./package.json"},"gitHead":"4f964497dc21c06ce4d54f1349e299a9f6773d52","_npmUser":{"name":"cpojer","email":"christoph.pojer@gmail.com"},"repository":{"url":"https://github.com/jestjs/jest.git","type":"git","directory":"packages/jest-circus"},"_npmVersion":"lerna/3.12.3/node@v24.1.0+arm64 (darwin)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"co":"^4.6.0","chalk":"^4.0.0","slash":"^3.0.0","dedent":"^1.0.0","p-limit":"^3.1.0","jest-each":"30.0.0-beta.6","jest-util":"30.0.0-beta.6","pure-rand":"^7.0.0","@jest/types":"30.0.0-beta.6","@types/node":"*","stack-utils":"^2.0.6","@jest/expect":"30.0.0-beta.6","jest-runtime":"30.0.0-beta.6","jest-snapshot":"30.0.0-beta.6","pretty-format":"30.0.0-beta.6","is-generator-fn":"^2.0.0","@jest/environment":"30.0.0-beta.6","@jest/test-result":"30.0.0-beta.6","jest-message-util":"30.0.0-beta.6","jest-matcher-utils":"30.0.0-beta.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"execa":"^5.0.0","tempy":"^1.0.1","@types/co":"^4.6.2","@babel/core":"^7.27.1","graceful-fs":"^4.2.9","@babel/register":"^7.0.0","@types/graceful-fs":"^4.1.3","@types/stack-utils":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/jest-circus_30.0.0-beta.6_1748994666909_0.13767255756641417","host":"s3://npm-registry-packages-npm-production"},"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":1748994667128,"_cnpm_publish_time":1748994667128,"dist-tags":{"latest":"30.5.2","next":"30.0.0-rc.1"}}