We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c31de22 commit be496bbCopy full SHA for be496bb
test/lib/utils/tar.js
@@ -1,3 +1,4 @@
1
+const path = require('node:path')
2
const t = require('tap')
3
const tar = require('tar')
4
const pack = require('libnpmpack')
@@ -163,13 +164,14 @@ t.test('should getContents of a tarball with a node_modules directory included',
163
164
},
165
})
166
167
+ const fileName = path.join(testDir, 'npm-example-v1.tgz')
168
await tar.c({
169
gzip: true,
- file: 'npm-example-v1.tgz',
170
+ file: fileName,
171
C: testDir,
172
}, ['package'])
173
- const tarball = await readFile(`npm-example-v1.tgz`)
174
+ const tarball = await readFile(fileName)
175
176
const tarballContents = await getContents({
177
name: 'my-cool-pkg',
0 commit comments