Skip to content
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

Use Vite include/exclude config #187

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Conversation

huwshimi
Copy link
Contributor

Done

Use include and exclude options from Vite config. This is done by connection to Vitest on startup and fetching the config.

It would be nice if there was a way to do this via a CLI command instead of starting the API connection, but I couldn't find a way to do that.

Fixes: #184.
Fixes: #173.
Fixes: #96.

QA

  • Remove any vitest.include or vitest.exclude options from your settings.json.
  • Remove any vitest.include or vitest.exclude defaults in your package.json.
  • Add an include or exclude option to test: {...} in your vite.config.(t|j)s or vitest.config.(t|j)s.
  • Run this extension.
  • The extension should identify the test files from the include/exclude options.
  • Add some vitest.include or vitest.exclude options in your settings.json that are different from your vite.config/vitest.config.
  • Run this extension again and it should use the options you've defined in your settings.json.

@zxch3n
Copy link
Member

zxch3n commented Oct 18, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants