Amend unit tests

This commit is contained in:
panticmilos 2022-07-18 12:54:17 +02:00
parent e6b5cf91d5
commit 9c76d73463

View file

@ -115,8 +115,15 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py
);
if (process.env['RUNNER_OS'] === 'linux') {
Object.defineProperty(utils, 'IS_LINUX', {
value: () => {
jest.fn().mockReturnValue(true);
}
});
computeKeysSpy.mockImplementation(() => 'Ubuntu-20.4');
}
await cacheDistributor.restoreCache();
if (process.env['RUNNER_OS'] === 'linux') {