From 5b14839ae12c514035842d0edfd4921aee6ffe3a Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Jul 2026 12:20:17 +0000 Subject: [PATCH 1/2] test(configurator): cover previewResolver.svelte.ts and StudioHeader's save-error state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SL-023 continuation, the last item in the remediation plan's PR7. Two real gaps remained after PR4/PR5/PR6 merged and the earlier batch's persistence.ts/SliderRow/TokenRow coverage: - previewResolver.svelte.ts had zero test coverage. Added tests/previewResolver.test.js covering registerPreviewDoc/getActiveTheme, resolveColor/resolveColorForTheme's per-expression and per-theme caching, resolveRgb/resolveBackground's no-preview-doc fallbacks, and — closing the loop on PR6's SL-020 rAF-coalescing — that bumpPreviewVersion() reliably invalidates the cache and is safe to call repeatedly (a pure counter, no reactive loop). Uses a real