diff --git a/src/lib/packages.ts b/src/lib/packages.ts index 58a483e5..04a63b0a 100644 --- a/src/lib/packages.ts +++ b/src/lib/packages.ts @@ -124,7 +124,8 @@ export class AllPackages { for (const name of pkg.testDependencies) { const versions = this.data.get(getMangledNameForScopedPackage(name)); if (versions) { - yield versions.getLatest(); + const version = pkg.pathMappings.find(({ packageName }) => packageName === name)?.version; + yield version ? versions.get(version) : versions.getLatest(); } } }