{"library":"jest-after-this","type":"library","category":null,"description":"jest-after-this is a Jest extension providing a new lifecycle hook, `afterThis`, which schedules code to run dynamically after the current test completes. Unlike `afterEach`, `afterThis` can be called multiple times within a single test to manage specific, unique side effects, ensuring cleanup even if the test fails. It is currently at version 1.0.4, with a recent release (v1.0.2) focused on release tooling, suggesting a maintenance or active, but not rapid, release cadence. Its key differentiator is the ability to tie cleanup directly to the test that created the side effect, promoting self-cleaning test helpers and reducing the complexity of shared `afterEach` hooks for diverse test scenarios. Handlers are executed in reverse order of registration and support asynchronous operations.","language":"javascript","status":"active","version":"1.0.4","tags":["javascript","jest","tests","testing","tdd","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install jest-after-this","imports":["import { afterThis } from 'jest-after-this';"]},{"cmd":"yarn add jest-after-this","imports":[]},{"cmd":"pnpm add jest-after-this","imports":[]}],"homepage":null,"github":"https://github.com/illBeRoy/jest-after-this","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/jest-after-this","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-after-this/compatibility"}}