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

Not working with $ in file names #32

Open
cjoecker opened this issue Oct 25, 2022 · 0 comments
Open

Not working with $ in file names #32

cjoecker opened this issue Oct 25, 2022 · 0 comments

Comments

@cjoecker
Copy link

I'm using Vitest with Remix.
In Remix, you should use the $ in the file name to define variables in the URLs.
My files files are called for example: posts.$postId.tsx. So, my test files are called posts.$postId.test.tsx
With that file name, I become the following error:

filter:  app/routes/posts..test.tsx
include: **/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}
exclude:  **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**
watch exclude:  **/node_modules/**, **/dist/**

No test files found, exiting with code 1

As a workaround, I renamed my test file to posts.test.tsx
I believe this can be fixed to avoid the workaround

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

No branches or pull requests

1 participant