mock-require
Simple, intuitive mocking of Node.js modules.
17
Versions
MIT
License
No
Install Scripts
Missing
Provenance
Supply chain provenance
Status for the latest visible version.
No SLSA provenance
npm registry signatures
gitHead linked
Without SLSA provenance there is no cryptographic link between this tarball and the public source, so a manually published version cannot be tied back to a reviewed commit.
Maintainers
boblauer
Keywords
requiredependencyinjectiondiinjectswaptestmockstub
Accepted risks
Findings the reviewer chose to accept rather than block on.
| Source | Rule | Reason | Accepted by | When |
|---|---|---|---|---|
| semgrep | semgrep:dynamic-require | AI (semgrep): mock-require's core purpose is intercepting require() calls; dynamic require with a variable is the fundamental mechanism of this mocking library, not a vulnerability. | ai |