Skip to content

Commit ddd50e9

Browse files
reggiCopilot
andauthored
chore(arborist): add missing registry mock in bin links reify test (#9746)
The `bin links adding and removing` test in `workspaces/arborist/test/arborist/reify.js` reifies `rimraf@2.7.1` without setting up a mock registry. This adds `createRegistry(t, true)` so the test uses the mock registry instead of depending on the real one. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 72a6088 commit ddd50e9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • workspaces/arborist/test/arborist

workspaces/arborist/test/arborist/reify.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,6 +1255,7 @@ t.test('bin links adding and removing', t => {
12551255
const path = t.testdir({
12561256
'package.json': JSON.stringify({}),
12571257
})
1258+
createRegistry(t, true)
12581259
const rbin = resolve(path, 'node_modules/.bin/rimraf')
12591260
return reify(path, { add: ['rimraf@2.7.1'] })
12601261
.then(() => fs.statSync(rbin)) // should be there

0 commit comments

Comments
 (0)