resnap
JSON →Version 1.0.1. Lightweight utility for capturing and restoring Node.js require() cache state. Enables module-level isolation in tests by clearing cached modules and ensuring fresh loads. Simpler than alternatives like decache as it provides a single snapshot/restore mechanism. Stable with no recent releases; suitable for Node.js environments where ESM is not required.
Resources
packageresnap ↗