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

Function noScripts

test/lib/utils/allow-scripts-prune.js:13–13  ·  view source on GitHub ↗
(overrides)

Source from the content-addressed store, hash-verified

11
12const withScripts = (overrides) => ({ node: node(overrides), hasScripts: true })
13const noScripts = (overrides) => ({ node: node(overrides), hasScripts: false })
14
15t.test('empty / nullish policy', t => {
16 t.same(classifyUnusedEntries({}, []), { remaining: {}, removed: [] })

Callers 1

Calls 1

nodeFunction · 0.70

Tested by

no test coverage detected