-
Notifications
You must be signed in to change notification settings - Fork 507
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 found by "testMatch" but somehow nothing found in "Pattern" #511
Comments
Literally got this same issue in one of my projects yesterday, agilgur5/jest-without-globals#2 (comment) . Was extremely confusing and time-consuming. Per that issue, it's happening because the internal I haven't been able to reproduce it everywhere (despite all using v0.12.3), so I have a feeling this is a bug in the CLI dependency, Will investigate further -- in the meantime might be able to fix this with a Yarn resolution to |
Oh also another workaround is to pass literally any argument to This also means to get coverage right now you have to do e.g. A Yarn resolution would be better though. It might impact other commands too, but not sure as the args are treated differently in |
Confirmed that this does not occur on It shouldn't mutate |
Sent a PR upstream: lukeed/sade#36 Hopefully the root cause is resolved upstream soon. TSDX could pin |
Just updating here that lukeed/sade#36 was merged within ~10 hours of me making it and was released in Because the bug was upstream, no updates to TSDX itself are necessary. To get this fix in This issue can be closed as it's been resolved. |
Current Behavior
I create a brand new project by running "npx tsdx create" and run "npm test" but no test file is found, see screenshot:
We can see that one test file was found at the beginning:
Expected behavior
Test file should be found.
Suggested solution(s)
Additional context
Your environment
The text was updated successfully, but these errors were encountered: