Add SEO test coverage
1 minute read
The only existing test file is imagetools.test.js. Nothing covers the meta/sitemap/feed
surface — meaning any of the audit fixes can silently regress without
notice.
Test targets
Meta.svelte— title fallback chain, OG/Twitter parity, canonical, noindex, keywords, empty-content suppressionsitemap-appendix.xml— included URLs matchexcluded/draft/noindexrulesfeed.json— JSON Feed 1.1 schema (version,home_page_url,feed_url, items)feed.xml—sanitizeContentForRSSregex, HTML escaping, no double slashes in<id>parsePublicationDate/publicationDateToISO— DD-MM-YYYY, ISO, and invalid inputpathToPublicURL— route-group stripping, nested groupsgetReadNext— tag-overlap ranking, fallback to recent, excluded/draft filtering
Read next
