pmcp

mocha

Use Mocha ^12.0.0 programmatically, with the ESM package shape and runner-loading rules rather than v11-era assumptions.

A skill is written against one major of its package, because a major is where the shape changes. Pick the line that matches your lockfile.

LineForVerified
12.x mocha@12.0.0 2026-09-08, 2 examples