fix tests

This commit is contained in:
Dmitry Shibanov 2022-05-09 11:16:24 +02:00
parent 5dd8329ef6
commit ee3a2543f1
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();