-
Notifications
You must be signed in to change notification settings - Fork 1
Jest doesn't find any test files on windows #21
Comments
@DorianGrey Didn't know where best to ask this, but I'm having trouble with jest finding any test files on Win10 using 23.6.0. Even when I pass in a direct path to a test file (rather than wildcards in testMatch) it fails to find it. Didn't want to raise a new bug in case I was being really dense. Would appreciate any help you can give. Example with direct path trying with win & linux paths: e.g. $ node_modules/.bin/jest /c/Users/WESLEYWilliams/git/myrepo/test/fvt/__ tests __ /my.test.js |
I've checked this on Win 10, and both ways of providing a file path resp. pattern work fine, i.e. I cannot reproduce this issue, neither on |
@DorianGrey Unfortunately I can't share the repo, but what kind of project details might I be able to provide that could help? |
@DorianGrey My colleague (on Mac) and I (on Win10) both created a basic repo each. He can run jest in both mine and his repo fine and it finds the test, I run jest and it doesn't in either My result in my repo:
His result in my repo:
We've tried versions 23.1.0 and 23.6.0 My repo: https://github.com/wideawakewesley/jesttest |
It seems to have something to do with the
In general - is there any particular reason to define |
@DorianGrey Thanks, that cracked it! Really appreciate the help. Also particularly like the user icon. Happens to be my favourite character from a book series I loved as a kid. |
Just recognized the
appveyor
build failing after the most recent update ofjest
to23.2.0
.There are already a couple of issues open regarding this:
jestjs/jest#6546
jestjs/jest#6509
Have to figure out if it's possible to work around this using a different
testMatch
config.The text was updated successfully, but these errors were encountered: