MCPcopy Create free account
hub / github.com/npm/cli / mockCheck

Function mockCheck

test/lib/utils/check-allow-scripts.js:3–4  ·  view source on GitHub ↗
(t, mocks = {})

Source from the content-addressed store, hash-verified

1const t = require('tap')
2
3const mockCheck = (t, mocks = {}) =>
4 t.mock('../../../lib/utils/check-allow-scripts.js', mocks)
5
6// Build a minimal "arborist tree" fixture for the walker.
7const arb = ({ nodes, allowScripts = null, ignoreScripts = false } = {}) => ({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected