import { describe, expect, it } from "@suaveplan/testing/runner"; import { compressSvg } from "../src/core/compress-svg/compress-svg.js"; import { parseSvg } from "../src/parser/svg/svg.js"; import { PRESET_AGGRESSIVE, PRESET_DEFAULT, PRESET_SAFE, } from "../src/presets/index.js"; const REAL_SVG_ICON = ` Home Icon `; const MINIMAL_SVG = ''; describe("integration: PRESET_DEFAULT", () => { it("compresses real SVG icon and reduces size", { timeout: 5000 }, () => { const result = compressSvg(REAL_SVG_ICON, { plugins: PRESET_DEFAULT }); expect(result.ratio).toBeLessThanOrEqual(1); expect(result.data).not.toContain(""; const result = compressSvg(svg, { plugins: PRESET_SAFE }); expect(result.data).not.toContain("