Skip to content

Commit 26aeba6

Browse files
committed
test: try setting the cache
1 parent 0a4918c commit 26aeba6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

workspaces/arborist/test/arborist/pruner.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ const pruneTree = (path, opt) => new Arborist({ path, ...(opt || {}) }).prune(op
2424

2525
t.test('prune with lockfile with implicit optional peer dependencies', async t => {
2626
registry.audit({})
27+
const opts = {}
28+
29+
if (process.platform === 'win32') {
30+
opts['cache'] = 'C:\\npm\\cache\\_cacache'
31+
}
2732
const path = fixture(t, 'prune-lockfile-optional-peer')
28-
const tree = await pruneTree(path)
33+
const tree = await pruneTree(path, opts)
2934

3035
const dep = tree.children.get('dedent')
3136
t.ok(dep, 'required prod dep was pruned from tree')

0 commit comments

Comments
 (0)