Skill / SKILL.md

Memlab Memory Tests

meta/memlab

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.
3 views 5,096 repository stars 0 commentsUpdated Nov 28, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/meta/memlab' skill-source

Use the complete skill-source/plugins/memlab/skills/memlab-memory-tests directory with your client’s skill installer.

  • plugins/memlab/skills/memlab-memory-tests

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory plugins/memlab/skills/memlab-memory-tests

Compatibility & requirements

Declared compatibility

Requires Node.js. Browser tests need the memlab or @memlab/api npm package, which downloads Chromium through Puppeteer, plus Chromium's system libraries on CI machines.

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
5a98b9dff35712e37c2041404d7238d605e1d1c464521a07b53b8155cdd55f98
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills