Skip to content

Conversation

@BobbieGoede
Copy link
Member

🔗 Linked issue

📚 Description

Tried this about two years ago with nuxt/test-utils#670, now with a bit more experience I think I managed to have something working.

This changes the way runtime config is set during tests, previously we restarted the server with new environment variables, this PR changes this to use IPC signals to update the process environment variables (and restore it after the test) while the server is running.

@BobbieGoede BobbieGoede self-assigned this Apr 25, 2025
@BobbieGoede BobbieGoede merged commit bb5fee2 into next Apr 25, 2025
10 checks passed
@BobbieGoede BobbieGoede deleted the test/set-runtime-config-without-restarting-server branch April 25, 2025 08:15
@alexandre-hallaine
Copy link

nice!

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.

3 participants