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

Function printLogs

deps/npm/test/lib/utils/tar.js:21–28  ·  view source on GitHub ↗
(tarball, options)

Source from the content-addressed store, hash-verified

19})
20
21const printLogs = (tarball, options) => {
22 const logs = []
23 const { logTar } = mockTar({
24 notice: (...args) => logs.push(...args),
25 })
26 logTar(tarball, options)
27 return logs.join('\n')
28}
29
30t.test('should log tarball contents', async (t) => {
31 const testDir = t.testdir({

Callers 1

tar.jsFile · 0.85

Calls 4

mockTarFunction · 0.85
logTarFunction · 0.85
pushMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…