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 (Vitest + Container API + client environment users)
  • Explanation of what will happen without migration
  • Step-by-step migration guide with code examples
  • Workspace configuration example for projects needing multiple test environments

Related issues & labels (optional)

@github-actions github-actions bot added the i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help! label Nov 27, 2025
@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 122a387
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/69285d38c17dce0009ba4d55
😎 Deploy Preview https://deploy-preview-12802--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

astrobot-houston commented Nov 27, 2025

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/testing.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.

@ematipico
Copy link
Member

Something is wrong with the PR @Ntale3

I believe the problem is that you created your branch from the main branch and then opened the PR towards the v6 branch. Could you fix that?

@delucis
Copy link
Member

delucis commented Nov 27, 2025

@ematipico Should be fixed: v6 branch needed updating with latest commits from main and then I pulled those changes in here. So now this PR only shows the relevant changes 👍

Copy link
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @Ntale3!

I should have been a bit clearer in my guidance. We should document the change in our upgrade guide: https://github.com/Ntale3/docs/blob/docs/testing-v6-update/src/content/docs/en/guides/upgrade-to/v6.mdx

Our individual docs pages always reflect the current behaviour, and we’ll use the v6 upgrade guide to collect a list of all the changes needed when updating to v6 for people to go through. (Otherwise they would need to hunt all over docs for mentions like this.)

Could you update the PR to make the change to that page instead? You can follow the patterns already in use to see how to structure the content.

@Ntale3
Copy link
Author

Ntale3 commented Nov 27, 2025

Thanks for the guidance @delucis let me work as guided

@Ntale3 Ntale3 closed this Nov 27, 2025
@Ntale3 Ntale3 force-pushed the docs/testing-v6-update branch from 0c679ff to 122a387 Compare November 27, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants