Skip to content

test: set runtime config using IPC signal #3572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 25, 2025

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

1 participant