I have the same problem as this "duplicate" question. I made an empty project and installed only jest. Then I created one sample test file. When I run jest, it gives an error:
FAIL __tests__/test.test.js
● Test suite failed to run
TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.relative (path.js:1254:5)
I have the latest version of npm, and the jest version is 21.2.1. Mac. Any ideas what might be causing it?
EDIT: version 20.0.4 works just fine, so I go with it for now.