on-exit-leak-free

Execute a function on exit without leaking memory, allowing all objects to be garbage collected

jest-collector

A tool for testing imported functions and or React components and its hooks or lifecycles.