cli
cli copied to clipboard
fix: `npm hook ls` duplicates hook name prefixes
- Fixes double prefix for hooks scopes names
- Fixes libnpmhook mocks (In the function logic, the symbol
@
is not removed from the hooks scopes names, but in mocks it is removed. I fixed the mocks and made this logic like in a function.) - Fixes wrong test cases
References
fixes https://github.com/npm/cli/issues/4201