test(plugins): address discovery review feedback

This commit is contained in:
Ayaan Zaidi
2026-04-17 08:37:11 +05:30
parent 9da4d5f5df
commit 353950894a
2 changed files with 3 additions and 1 deletions

View File

@@ -258,6 +258,7 @@ async function expectRejectedPackageExtensionEntry(params: {
}
afterEach(() => {
vi.restoreAllMocks();
clearPluginDiscoveryCache();
cleanupTrackedTempDirs(tempDirs);
});

View File

@@ -102,8 +102,9 @@ function buildScopedDiscoveryCacheKey(params: {
env: params.env,
});
const workspaceKey = roots.workspace ?? "";
const bundledRoot = roots.stock ?? "";
const ownershipUid = params.ownershipUid ?? currentUid();
return `scoped::${workspaceKey}::${ownershipUid ?? "none"}::${JSON.stringify(loadPaths)}`;
return `scoped::${workspaceKey}::${bundledRoot}::${ownershipUid ?? "none"}::${JSON.stringify(loadPaths)}`;
}
function buildSharedDiscoveryCacheKey(params: {