Fix self test

This commit is contained in:
Jake Bailey
2025-07-25 13:21:39 -07:00
parent 931430c335
commit 2aca21175e

View File

@@ -47,6 +47,7 @@ import {
ModeAwareCache,
ModuleResolutionCache,
moduleResolutionNameAndModeGetter,
Mutable,
mutateMap,
noopFileWatcher,
normalizePath,
@@ -556,7 +557,7 @@ function resolveModuleNameUsingGlobalCache(
);
if (resolvedModule) {
// Modify existing resolution so its saved in the directory cache as well
(primaryResult.resolvedModule as any) = resolvedModule;
(primaryResult as Mutable<typeof primaryResult>).resolvedModule = resolvedModule;
primaryResult.failedLookupLocations = updateResolutionField(primaryResult.failedLookupLocations, failedLookupLocations);
primaryResult.affectingLocations = updateResolutionField(primaryResult.affectingLocations, affectingLocations);
primaryResult.resolutionDiagnostics = updateResolutionField(primaryResult.resolutionDiagnostics, resolutionDiagnostics);