import { describe, expect, it } from 'vitest'; import type { ProcessedFile } from '../../../src/core/file/fileTypes.js'; import { canUseFastOutputTokenPath, extractOutputWrapper } from '../../../src/core/metrics/calculateMetrics.js'; import { createMockConfig } from '../../testing/testUtils.js'; describe('extractOutputWrapper', () => { it('should extract wrapper from output with file contents', () => { const files: ProcessedFile[] = [ { path: 'a.ts', content: 'const a = 1;' }, { path: 'b.ts', content: 'const b = 2;' }, ]; const output = '
const a = 1;const b = 2;