import { describe, it, expect } from 'vitest' import JSZip from 'jszip' import { buildZip } from '@/lib/exporter/zip' describe('Export ZIP 메타 보존 검증', () => { it('index.html의 SEO/OG/Analytics 메타가 그대로 보존된다', async () => { const html = `
ok` const css = 'body{color:#222}' const js = 'console.log("ok")' const zipBytes = await buildZip({ html, css, js, assets: {} }) const zip = await JSZip.loadAsync(zipBytes) const htmlContent = await zip.files['index.html'].async('string') expect(htmlContent).toMatch(/