linux-china / vitest-jetbrains-plugin

Vitest JetBrains plugin
https://plugins.jetbrains.com/plugin/19220-vitest-runner
Apache License 2.0
52 stars 6 forks source link

Not working with $ in file names #32

Open cjoecker opened 2 years ago

cjoecker commented 2 years ago

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