Software Development

Memlab Memory Tests

Write automated memory leak tests with memlab. Use it for Node.js unit tests that assert an object was garbage collected (takeNodeMinimalHeap, tagObject, hasObjectWithClassName), for browser leak tests in CI that run a memlab scenario through @memlab/api and fail when leaks are found, and for checking heap snapshots from Playwright, Cypress or Puppeteer tests. Use when the user wants a regression test for a memory leak, asks how to assert that memory is released, or wants memory leak checks in Jest, Mocha, node:test or a CI pipeline.

Publisher / source
meta/memlab (found on GitHub top repositories)
Upstream record
meta/memlab
Version
Version 1
Published
Publication review
Approved for publication
Content fingerprint
48d087ad075f484f45e3180a4166887f8fa46a2885d683c67fd197cab429adc5