DeprecationCopView spec is failing on Windows because paths are using hardcoded / as a separator while the check for paths to node_modules is working with path.sep. This is causing package1 to be selected as an package name instead of expected package2.
I also removed commas from stack as some were missing anyway and packagePathsByPackageName is not using any.
I used Node's path.normalize that should make sure returned path is normalized for the used operating system.
DeprecationCopView
spec is failing on Windows because paths are using hardcoded/
as a separator while the check for paths to node_modules is working withpath.sep
. This is causingpackage1
to be selected as an package name instead of expectedpackage2
.I also removed commas from
stack
as some were missing anyway andpackagePathsByPackageName
is not using any.I used Node's
path.normalize
that should make sure returned path is normalized for the used operating system.