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

Test file cannot be found if the test file or the directory contains uppercase characters. #54

Closed
jtamyrc opened this issue Jul 12, 2022 · 4 comments
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@jtamyrc
Copy link

jtamyrc commented Jul 12, 2022

Describe the bug
Test file cannot be found if the test file or the directory contains uppercase characters.

For example,
If the test file located in Category directory, such as /app/src/components/Category/CategoryContainer.test.js, the test file cannot be found.

To Reproduce
Click the test button if the test file or the directory contains uppercase characters.

Screenshots
test file and directory setup
image

example test
image

Run the test and Test file can not be found and it create a new file located as /app/src/components/category/categorycontainer.test.js instead.
image

Expected behavior
Test file can be found and run the test.

Environment

  • OS: Windows 10 running in DevContainer
  • VSCode version: 1.69.0
  • Vitest version: 0.18.0
  • Vitest plugin version: v0.2.20
@jtamyrc jtamyrc added the p3-minor-bug An edge case that only affects very specific usage (priority) label Jul 12, 2022
@zxch3n
Copy link
Member

zxch3n commented Jul 23, 2022

Does it work now in the pre-release version?

@anbraten
Copy link

Tested and seems to work for me. Thanks.

@zxch3n
Copy link
Member

zxch3n commented Jul 23, 2022

Thank you @anbraten @YPetremann

@zxch3n zxch3n closed this as completed Jul 23, 2022
@jtamyrc
Copy link
Author

jtamyrc commented Jul 25, 2022

Thanks @YPetremann

@zxch3n @anbraten It still cannot find the test file if the directory contains uppercase characters, but it did fix the file contains uppercase characters.

I tested in the pre-release version.

Please reopen this issue.

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

3 participants