mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-13 23:51:10 +00:00
Update memoization to lodash implementation
This commit is contained in:
parent
5e21ff4d9b
commit
d5f102c3e3
6 changed files with 1458 additions and 78 deletions
__tests__
|
@ -6,8 +6,7 @@ import {
|
|||
PackageManagerInfo,
|
||||
isCacheFeatureAvailable,
|
||||
supportedPackageManagers,
|
||||
getCommandOutput,
|
||||
resetProjectDirectoriesMemoized
|
||||
getProjectDirectoriesFromCacheDependencyPath
|
||||
} from '../src/cache-utils';
|
||||
import fs from 'fs';
|
||||
import * as cacheUtils from '../src/cache-utils';
|
||||
|
@ -123,7 +122,7 @@ describe('cache-utils', () => {
|
|||
MockGlobber.create(['/foo', '/bar'])
|
||||
);
|
||||
|
||||
resetProjectDirectoriesMemoized();
|
||||
getProjectDirectoriesFromCacheDependencyPath.cache.clear?.();
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue