it('should catch errors when saving log entry on filesystem', async () => {
    jest.spyOn(errorLog, 'error').mockImplementation(() => ({}));
    jest
      .spyOn(storage, 'storeFile')
      .mockImplementation(async () => Promise.reject(new Error('storage save error')));