fix tests

This commit is contained in:
Dmitry Shibanov 2022-05-09 11:16:24 +02:00
parent 381a73b90e
commit 62079dbf4b
3 changed files with 83 additions and 2 deletions

View file

@ -27,6 +27,13 @@ import * as installer from '../src/install-python';
const manifestData = require('./data/versions-manifest.json');
describe('Finder tests', () => {
let writeSpy: jest.SpyInstance;
beforeEach(() => {
writeSpy = jest.spyOn(process.stdout, 'write');
writeSpy.mockImplementation(() => {});
});
afterEach(() => {
jest.resetAllMocks();
jest.clearAllMocks();