feat(exporter): SEO/Perf small improvements (canonical, lazy/async hero, dark token) + tests

This commit is contained in:
2025-11-14 20:49:47 +09:00
parent 14a3d32480
commit 90e410f49e
3 changed files with 38 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ describe('Exporter a11y/responsive enhancements', () => {
test('hero image alt derives from heading', () => {
const out = exportPage(makePage())
expect(out.html).toContain('<h1 id="hero-heading">Welcome</h1>')
expect(out.html).toContain('<img src="https://example.com/img.png" alt="Welcome" />')
expect(out.html).toMatch(/<img[^>]*src="https:\/\/example\.com\/img\.png"[^>]*alt="Welcome"[^>]*\/>/)
})
test('responsive and a11y CSS tokens exist', () => {