From a1b90b787ed4fbe648cdc4bdb193dfe812296d44 Mon Sep 17 00:00:00 2001 From: Tea Reggi Date: Fri, 10 Jul 2026 14:49:43 -0400 Subject: [PATCH] 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> (cherry picked from commit ddd50e92370073a1ea0e0e4483de4088e8e34210) --- workspaces/arborist/test/arborist/reify.js | 1 + 1 file changed, 1 insertion(+) diff --git a/workspaces/arborist/test/arborist/reify.js b/workspaces/arborist/test/arborist/reify.js index 64859a4b71630..d55eca2b5af91 100644 --- a/workspaces/arborist/test/arborist/reify.js +++ b/workspaces/arborist/test/arborist/reify.js @@ -1347,6 +1347,7 @@ t.test('bin links adding and removing', t => { const path = t.testdir({ 'package.json': JSON.stringify({}), }) + createRegistry(t, true) const rbin = resolve(path, 'node_modules/.bin/rimraf') return reify(path, { add: ['rimraf@2.7.1'] }) .then(() => fs.statSync(rbin)) // should be there