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

Any chance of support for in-source testing #17

Closed
Aaron-Pool opened this issue Apr 14, 2022 · 5 comments
Closed

Any chance of support for in-source testing #17

Aaron-Pool opened this issue Apr 14, 2022 · 5 comments
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)

Comments

@Aaron-Pool
Copy link

I noticed the extension doesn't pick up on in-source tests. Any chance this feature will be supported in the future. I might be willing to contribute to a PR if I new it wouldn't sit dead in the PR board indefinitely.

@zxch3n
Copy link
Member

zxch3n commented May 17, 2022

PR is welcomed!

@zxch3n zxch3n added the p2-nice-to-have Not breaking anything but nice to have (priority) label May 20, 2022
@watonyweng
Copy link

Hi @zxch3n, if we want to support In-source Testing in VSCode, we should add options to configure includeSource and dedect some files when there is a if (import.meta.vitest){ } block in source code.

@szulcus
Copy link

szulcus commented Jan 25, 2023

What should I do to make the plugin for VS Code work?
image

@nicolasreszka
Copy link

Hello, did you find a solution ?

@sheremet-va
Copy link
Member

sheremet-va commented Mar 15, 2024

In-source tests are supported in pre-release 0.5.0 and higher. Note that the extension now requires Vitest 1.4.0 or higher.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

No branches or pull requests

6 participants