-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Tests with special characters in the filename are not processed correctly #2731
Comments
This seems like a Vite error. Please, create an issue in their repository. |
Sounds good, opened vitejs/vite#11784 |
I think the problem is because the path there are spaces between the caracteres, ({[ % & $ # @ ~ ,)}], so that is a invalid path, you need to use backslash \ to scape the spaces. |
I don't write the filename or path anywhere though - this is vitest auto-discovering it based on the test directory. I can't change the name of the directory because the test is actually testing a program that reads special characters from that local directory. |
Vitest supports spaces in file path |
Have you set any alias? |
Vitest follows Vite rules, and unfortunately it cannot support some special characters: vitejs/vite#11784 (comment) |
Describe the bug
I have a file in a directory called
__({[ % & $ # @
~ ,)}]__/special-characters.spec.ts`.The full path to the test is
The error is
Reproduction
Create a test spec in a file directory named:
Then try and run the test. The contents of the test do not matter.
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: