This commit is contained in:
Dmitry Shibanov 2022-05-09 13:04:52 +02:00
parent bd01c0d9fb
commit d43033cfcd

View file

@ -127,6 +127,9 @@ describe('Finder tests', () => {
fs.writeFileSync(`${expPath}.complete`, 'hello'); fs.writeFileSync(`${expPath}.complete`, 'hello');
}); });
const tcFindSpy: jest.SpyInstance = jest.spyOn(tc, 'find');
tcFindSpy.mockImplementationOnce(() => "").mockImplementationOnce(() => expPath);
await io.mkdirP(pythonDir); await io.mkdirP(pythonDir);
await io.rmRF(path.join(toolDir, 'Python', '1.2.3')); await io.rmRF(path.join(toolDir, 'Python', '1.2.3'));