import { renderToStaticMarkup } from 'react-dom/server' import { describe, it, expect } from 'vitest' import { QAMonthlyView } from './QAMonthly' import { monthlyFixture } from './qaMonthly.fixture' import { parseQAMonthly } from './qaMonthly' describe('personal monthly view', () => { it('shows a partial month as progress, escapes source names and does not imply eligibility', () => { const html = renderToStaticMarkup( {}} onPage={() => {}} /> ) for (const text of ['本源零记录', '当月进度', '姓名未同步', '当前通讯录', '未关联']) expect(html).toContain(text) expect(html).not.toContain('