MCPcopy Index your code
hub / github.com/nodejs/node / mockCheck

Function mockCheck

deps/npm/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 1

mockMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…