Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
const
_mockNpm = require(
'../../fixtures/mock-npm'
)
5
6
const
mockNpm =
async
(t, opts = {}) => {
7
return
_mockNpm(t, opts)
8
}
9
10
const
setupProject = ({ allowScripts, withScripts = [
'canvas'
] } = {}) => {
11
const
pkg = {
Callers
1
approve-scripts.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected