Update dependencies

This commit is contained in:
Shivam Mathur
2021-05-11 18:09:52 +05:30
parent c2ce0737e9
commit acce7e61bc
4 changed files with 857 additions and 749 deletions

View File

@@ -5,21 +5,19 @@ import * as utils from '../src/utils';
* Mock cache.ts
*/
jest.mock('../src/cache', () => ({
run: jest.fn().mockImplementation(
async (): Promise<string> => {
let version: string = process.env['php-version'] || '';
version = version.length > 1 ? version.slice(0, 3) : version + '.0';
const extensions = await utils.filterExtensions(
process.env['extensions'] || ''
);
const key: string = process.env['key'] || '';
const script_path = 'extensions.sh';
run: jest.fn().mockImplementation(async (): Promise<string> => {
let version: string = process.env['php-version'] || '';
version = version.length > 1 ? version.slice(0, 3) : version + '.0';
const extensions = await utils.filterExtensions(
process.env['extensions'] || ''
);
const key: string = process.env['key'] || '';
const script_path = 'extensions.sh';
return (
'bash ' + script_path + ' "' + extensions + '" ' + key + ' ' + version
);
}
)
return (
'bash ' + script_path + ' "' + extensions + '" ' + key + ' ' + version
);
})
}));
/**