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 runtime information to update the tests info #133

Closed
zxch3n opened this issue Feb 9, 2023 · 4 comments
Closed

Use runtime information to update the tests info #133

zxch3n opened this issue Feb 9, 2023 · 4 comments
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@zxch3n
Copy link
Member

zxch3n commented Feb 9, 2023

This extension currently relies on the babel parser to calculate the positions of tests statically. So it doesn't support

@zxch3n zxch3n added the p3-minor-bug An edge case that only affects very specific usage (priority) label Feb 9, 2023
@Maxim-Mazurok
Copy link

I saw your PR about watch mode #33 where you used vitest --api, I thought it'd help with test list generation, doesn't it?

@firatoezcan
Copy link

Btw, for everyone that reads this, I moved my tests out of my *.spec.ts files into *.each.spec.ts files and added rules so the extension doesn't run them but the CLI still does:

"vitest.exclude": ["**/*each.spec.{ts,tsx}", "**/node_modules/**", "**/dist/**", "**/cypress/**", "**/.{idea,git,cache,output,temp}/**"],
"vitest.include": ["**/*.spec.{ts,tsx}"]

This works like a charm

@ytw0728
Copy link

ytw0728 commented Mar 13, 2024

Hello! I appreciate your efforts.
could you let me know this issue's current status in the second one (renamed test or describe)?

is it dealing with now? and which version do you think it will be released?

@sheremet-va
Copy link
Member

sheremet-va commented Mar 15, 2024

This is now 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
p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

No branches or pull requests

5 participants