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

Add developer documentation to core repo for debugging directories that use vitest #7504

Open
hl662 opened this issue Dec 19, 2024 · 0 comments
Labels
good first issue Good for newcomers testing

Comments

@hl662
Copy link
Contributor

hl662 commented Dec 19, 2024

Vitest is awful when integrating with vscode's launch configuration, especially when it comes to debugging tests that are run through @vitest/browser. Vitest, unlike mocha, does not run only tests that use it.only across the whole folder, which also makes it a pain to selectively run tests the way our developers have done in the past.

One successful method of quickly running individual tests as well as debugging them, is to use VSCode's vitest explorer extension, and that's our recommendation. Although, it's not easy for developers to find that extension, and we don't explicitly provide that recommendation anywhere.

We should put that down in writing somewhere (perhaps CONTRIBUTING.md) to help new developers debug vitest-enabled folders in the core repo.

@hl662 hl662 added good first issue Good for newcomers testing labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers testing
Projects
None yet
Development

No branches or pull requests

1 participant