import fs from 'fs/promises'; import * as mdModule from '../src/services/markdownHtmlAgent'; describe('markdownHtmlAgent additional branches', () => { beforeEach(() => jest.resetAllMocks()); it('ignores logo errors and proceeds without image', async () => { jest.spyOn(fs, 'readFile').mockRejectedValue(new Error('no file')); const html = await mdModule.markdownHtmlAgent({ title: 'X', markdown: '# A\n\nB', date: '2022-01-01' }); expect(html).not.toMatch(/'); }); });