Do not ivalidate the cache entirely on yarn3 lock file change

This commit is contained in:
Sergey Dolin 2023-06-22 11:07:50 +02:00
parent 8170e22e8f
commit 342f9b87ab
5 changed files with 205 additions and 7 deletions

View file

@ -6,7 +6,8 @@ import {
PackageManagerInfo,
isCacheFeatureAvailable,
supportedPackageManagers,
getCommandOutput
getCommandOutput,
resetProjectDirectoriesMemoized
} from '../src/cache-utils';
import fs from 'fs';
import * as cacheUtils from '../src/cache-utils';
@ -103,6 +104,8 @@ describe('cache-utils', () => {
(pattern: string): Promise<Globber> =>
MockGlobber.create(['/foo', '/bar'])
);
resetProjectDirectoriesMemoized();
});
afterEach(() => {