MCPcopy Create free account
hub / github.com/nodejs/node / mockNpm

Function mockNpm

deps/npm/test/lib/commands/approve-scripts.js:6–8  ·  view source on GitHub ↗
(t, opts = {})

Source from the content-addressed store, hash-verified

4const _mockNpm = require('../../fixtures/mock-npm')
5
6const mockNpm = async (t, opts = {}) => {
7 return _mockNpm(t, opts)
8}
9
10const setupProject = ({ allowScripts, withScripts = ['canvas'] } = {}) => {
11 const pkg = {

Callers 1

approve-scripts.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected