refactor: Enable stricter test linting

This commit is contained in:
Joachim Van Herwegen
2023-10-27 15:53:52 +02:00
parent 6248ed0938
commit 7a007dc466
48 changed files with 179 additions and 155 deletions

View File

@@ -17,7 +17,8 @@ describe('WinstonLoggerFactory', (): void => {
// Create a dummy log transport
transport = new PassThrough({ objectMode: true }) as any;
transport.write = jest.fn();
jest.spyOn(transport, 'write').mockImplementation();
// eslint-disable-next-line jest/prefer-spy-on
transport.log = jest.fn();
});