← Home

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.

SourceRuleReasonAccepted byWhen
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

Versions (showing 17 of 17)

Version Deps Published
3.0.3 2 / 3
3.0.2 2 / 2
3.0.1 1 / 2
3.0.0 2 / 2
2.0.2 1 / 0
2.0.1 1 / 0
2.0.0 1 / 0
1.3.0 1 / 0
1.2.1 1 / 0
1.2.0 1 / 0
1.1.0 1 / 0
1.0.5 1 / 0
1.0.4 1 / 0
1.0.3 1 / 0
1.0.2 0 / 0
1.0.1 0 / 0
1.0.0 0 / 0