test: Add unit tests for gently-rm's functions
test: Add unit tests for gently-rm's functions

PR-URL: https://github.com/npm/npm/pull/10270
Fixes: #9980
Credit: da39a3ee5e6b4b0d3255bfef95601890afd80709@iarna

evocateur/npm,midniteio/npm,cchamberlain/npm-msys2,kemitchell/npm,xalopp/npm,ekmartin/npm,kimshinelove/naver-npm,lxe/npm,segrey/npm,Volune/npm,yodeyer/npm,rsp/npm,cchamberlain/npm-msys2,evanlucas/npm,rsp/npm,princeofdarkness76/npm,evocateur/npm,DIREKTSPEED-LTD/npm,xalopp/npm,midniteio/npm,Volune/npm,lxe/npm,chadnickbok/npm,yibn2008/npm,yibn2008/npm,segrey/npm,evanlucas/npm,cchamberlain/npm-msys2,cchamberlain/npm,midniteio/npm,evanlucas/npm,yibn2008/npm,ekmartin/npm,TimeToogo/npm,chadnickbok/npm,yodeyer/npm,ekmartin/npm,haggholm/npm,DIREKTSPEED-LTD/npm,haggholm/npm,cchamberlain/npm,DaveEmmerson/npm,thomblake/npm,misterbyrne/npm,DaveEmmerson/npm,cchamberlain/npm,thomblake/npm,Volune/npm,DaveEmmerson/npm,kemitchell/npm,TimeToogo/npm,thomblake/npm,xalopp/npm,evocateur/npm,misterbyrne/npm,TimeToogo/npm,segrey/npm,princeofdarkness76/npm,DIREKTSPEED-LTD/npm,lxe/npm,chadnickbok/npm,kimshinelove/naver-npm,haggholm/npm,kimshinelove/naver-npm,rsp/npm,princeofdarkness76/npm,kemitchell/npm,misterbyrne/npm,yodeyer/npm