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

Optimize test files lookup #46

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Optimize test files lookup #46

merged 1 commit into from
Aug 8, 2024

Conversation

zackad
Copy link
Owner

@zackad zackad commented Aug 8, 2024

If you use nix flakes and enabling it using direnv, there will be .devenv and .direnv directories in your root project directory. By default vitest will try to look for test files in all directories unless it is being excluded. Unfortunately .devenv and .direnv is not on that list.

All we need is just tell vitest only to look for in tests directory.

If you use nix flakes and enabling it using direnv, there will be
`.devenv` and `.direnv` directories in your root project directory. By
default vitest will try to look for test files in all directories unless
it is being excluded. Unfortunately `.devenv` and `.direnv` is not on
that list.

All we need is just tell vitest only to look for in `tests` directory.
@zackad zackad merged commit a794b9d into master Aug 8, 2024
2 checks passed
@zackad zackad deleted the optimize-test-runner branch August 8, 2024 00:42
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.

1 participant