Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | /** * Phase 6.2 compatibility adapter * This provides createSnapshot() for legacy tests. */ import { toSnapshot } from './snapshot'; import type { FeedbackReport } from '../../types/phase5'; export function createSnapshot(iteration: number, payload: any) { const report: FeedbackReport = { iteration, timestamp: payload.timestamp || new Date().toISOString(), policies: payload.policies || [], notes: payload.notes || '', }; return toSnapshot(report); } // 🔥 ensure export exists at runtime export default { createSnapshot }; |