Skip to content

Commit f36633f

Browse files
committed
fix: properly use arborist and cache
1 parent 1ba7b91 commit f36633f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

workspaces/arborist/test/audit-report.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,8 @@ t.test('audit supports alias deps', async t => {
380380
const registry = createRegistry(t)
381381
registry.audit({ results: require(resolve(path, 'advisory-bulk.json')) })
382382
registry.mocks({ dir: join(__dirname, 'fixtures') })
383+
const cache = t.testdir()
384+
const arb = newArb(path, { cache })
383385
const tree = new Node({
384386
path,
385387
pkg: {
@@ -414,7 +416,7 @@ t.test('audit supports alias deps', async t => {
414416
],
415417
})
416418

417-
const report = await AuditReport.load(tree, { path })
419+
const report = await AuditReport.load(tree, arb.options)
418420
t.matchSnapshot(JSON.stringify(report, 0, 2), 'json version')
419421
t.equal(report.get('mkdirp').simpleRange, '0.4.1 - 0.5.1')
420422
})

0 commit comments

Comments
 (0)