Adding Vitest and Playwright tests to Astro
22 Nov 2025
I’ve been kicking out demo codebases faster than I can keep up with blogging them. Here are a few Astro-related codebases to share from my GitHub:
- An extremely tiny 1-page statically generated website built with Astro.
- I finally became a more responsible developer and added Vitest and Playwright tests to Astro, including beautification of the results via CI/CD. Check out the 2nd commit for the difference from the aforementioned extremely-tiny page. Check out its associated GitHub Actions run summary for the “beautified” automated test results.
- My usual demo of a page built with “blue section,” “to-do list section,” and “pink section” components, aimed at a WYSIWYG site builder, with Astro & Markdown.
- I also played with trying to implement that idea with Sanity CMS as the WYSIWYG site builder UI and Astro as the frontend renderer.
- I also played with trying to implement that idea with Sitecore CMS as the WYSIWYG site builder UI and Astro as the frontend renderer, though I don’t think I ever finished, because I can’t get my hands on a license key, so I can’t spin up a Docker instance of Sitecore XM Cloud. I think I was basically just taking notes on how I suspected it might work. It’s been a while; I forgot why that repo exists.