{"library":"jest-environment-emit","type":"library","category":null,"description":"jest-environment-emit is a utility package for Jest that overcomes the limitation of having only one test environment per project. It provides a mechanism to add multiple event handlers to any Jest test environment, acting similarly to multiple test reporters. The package offers `WithEmitter`, a higher-order function to wrap custom environments, and pre-wrapped `TestEnvironment` classes for `jest-environment-node` and `jest-environment-jsdom` via subpath exports. Currently at version 1.2.0, released in June 2025, the package maintains a steady release cadence, frequently addressing compatibility with new Jest versions (e.g., Jest 30 support in v1.2.0) and refining import/export mechanisms for robust ESM and CJS interoperability. Its primary differentiator is enabling modular, composable event-driven logic within the Jest testing lifecycle, which is otherwise restricted to a single environment definition. It ships with full TypeScript types, enhancing developer experience.","language":"javascript","status":"active","version":"1.2.0","tags":["javascript","environment","jest","jest-environment","jest-circus","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install jest-environment-emit","imports":["import { WithEmitter } from 'jest-environment-emit';","import { TestEnvironment } from 'jest-environment-emit/node';","import { TestEnvironment } from 'jest-environment-emit/jsdom';","import type { EnvironmentListenerFn } from 'jest-environment-emit';"]},{"cmd":"yarn add jest-environment-emit","imports":[]},{"cmd":"pnpm add jest-environment-emit","imports":[]}],"homepage":null,"github":"https://github.com/wix-incubator/jest-environment-emit","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/jest-environment-emit","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/jest-environment-emit/compatibility"}}