Skip to content

Conversation

@Ntale3
Copy link

@Ntale3 Ntale3 commented Nov 27, 2025

Description (required)

This PR documents a breaking change in Astro 6 where rendering .astro components in Vitest tests now requires using an SSR environment (node) instead of client environments (jsdom/happy-dom).

The temporary workaround added in Astro 5.x has been removed to ensure tests run in an environment that matches Astro's SSR build process.

What's included:

  • Clear identification of who is affected (all three conditions must apply: Vitest + Container API + client environment)
  • Explanation that users not rendering Astro components or already using node environment need no changes
  • Step-by-step migration guide with code examples
  • Workspace configuration example for projects needing multiple test environments

Related issues & labels (optional)

@netlify
Copy link

netlify bot commented Nov 27, 2025

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 48aa982
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/692872123ddcf500081da4f9
😎 Deploy Preview https://deploy-preview-12808--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@astrobot-houston
Copy link
Contributor

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/upgrade-to/v6.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@Ntale3
Copy link
Author

Ntale3 commented Nov 27, 2025

@delucis
I'd really appreciate your guidance and review on this PR. If there's anything that needs adjustment to better match the docs style or if I've missed any important details, please let me know. Happy to iterate on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants