import { describe, it, expect } from 'vitest'; import { buildMentorVerdictPrompt, buildMentorSpecVerdictPrompt } from './mentor-verdict.mjs'; describe('mentor re-eval instruction', () => { it('verdict-промпт: system содержит инструкцию переоценки', () => { const { system } = buildMentorVerdictPrompt({ plan: { steps: [] } }); expect(system).toContain('Переоцени ТЕКУЩИЙ'); expect(system).toContain('снятое НЕ повторяй'); }); it('spec-промпт: system содержит инструкцию переоценки', () => { const { system } = buildMentorSpecVerdictPrompt({ specContent: 'x' }); expect(system).toContain('Переоцени ТЕКУЩИЙ'); }); });