Skip to content

Conversation

@Alanoll
Copy link
Contributor

@Alanoll Alanoll commented Dec 23, 2025

This fixes (at least in my use cases) #691 .

The core problem appears to be how the extension attempts to enable the browser inspector via the configureVitest hook of the inline plugin. The hook doesn't execute when Vitest uses project configurations (so maybe an underlying bug in Vitest itself?), and therefore the inspector options aren't enabled.

I split the hook method logic into two places:

  • The inspector options are now passed as CLI options to Vitest since they're are passed down into the per project config resolution logic
  • The setupFiles are now updated in the reporter's onInit
    • This appears to be too late for inspector options to be honored (at least in my brief testing), which is why I stuck with the CLI method

Fixes #691

@sheremet-va sheremet-va merged commit 42c87d7 into vitest-dev:main Dec 23, 2025
2 of 4 checks passed
@Alanoll Alanoll deleted the fix/browser-debugging-project branch December 23, 2025 15:58
@Alanoll Alanoll restored the fix/browser-debugging-project branch December 27, 2025 20:17
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.

Debugging Browser Tests doesn't work in project setups

2 participants