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
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 calledposts.$postId.test.tsx
With that file name, I become the following error:As a workaround, I renamed my test file to
posts.test.tsx
I believe this can be fixed to avoid the workaround