Skip to content

feat: add the ability to define env variables for use when debugging#697

Merged
sheremet-va merged 2 commits intovitest-dev:mainfrom
Alanoll:feat/add-debugger-env
Feb 4, 2026
Merged

feat: add the ability to define env variables for use when debugging#697
sheremet-va merged 2 commits intovitest-dev:mainfrom
Alanoll:feat/add-debugger-env

Conversation

@Alanoll
Copy link
Contributor

@Alanoll Alanoll commented Dec 13, 2025

This adds the ability to define a separate set of environment variables to use when debugging vs when normal running of the tests via the extension.

A new vitest.debugNodeEnv setting is added to the extension and only used when executing a test via debugging.

@Alanoll
Copy link
Contributor Author

Alanoll commented Dec 13, 2025

I wasn't sure where/how to add tests that explicitly test with the debugger in play, so I modified an existing test project that had tests for environment variables.

@sheremet-va
Copy link
Member

LGTM 👍

@sheremet-va sheremet-va merged commit 565b7a7 into vitest-dev:main Feb 4, 2026
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