diff --git a/__tests__/finder.test.ts b/__tests__/finder.test.ts index 4faa777a..7e9eaa47 100644 --- a/__tests__/finder.test.ts +++ b/__tests__/finder.test.ts @@ -127,6 +127,9 @@ describe('Finder tests', () => { fs.writeFileSync(`${expPath}.complete`, 'hello'); }); + const tcFindSpy: jest.SpyInstance = jest.spyOn(tc, 'find'); + tcFindSpy.mockImplementationOnce(() => "").mockImplementationOnce(() => expPath); + await io.mkdirP(pythonDir); await io.rmRF(path.join(toolDir, 'Python', '1.2.3'));