You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Enumerate on-disk store entries as full keys, descending one level into each @scope directory because scoped keys nest as .store/@scope/pkg@version-hash.
Copy file name to clipboardExpand all lines: workspaces/arborist/test/isolated-mode.js
+79Lines changed: 79 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1994,6 +1994,85 @@ tap.test('orphaned store entries are cleaned up on dependency update', async t =
1994
1994
'old which@1.0.0 store entry is removed after update')
1995
1995
})
1996
1996
1997
+
tap.test('orphaned scoped store entries are cleaned up on dependency update',asynct=>{
1998
+
// https://github.com/npm/cli/issues/9440 — a scoped store key spans two path segments (.store/@scope/pkg@version-hash), so the single-segment orphan cleanup never swept the stale entry.
'old @scope/which@1.0.0 store entry is removed after update')
2039
+
})
2040
+
2041
+
tap.test('orphaned scoped store entries leave no empty scope directory when last dep is removed',asynct=>{
2042
+
// https://github.com/npm/cli/issues/9440 — when the last package under a scope is orphaned, the now-empty @scope directory should also be pruned.
0 commit comments