You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug What is the current behavior? npm t, and node_modules/.bin/jest --watch do not run my test files.
node_modules/.bin/jest --watchAll does find and run my tests
This is a project I had bootstrapped with CRA and then immediately ejected so I could specify a different path for my tests in package.json. npm t was working fine until my last commit, which gave me this spectacularly fun error:
While the FSEvents error has gone away, Jest still does not find my test files. The only way that I can make jest --watch work is to remove my .git folder from the project, at which point everything seems to work just fine.
If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can yarn install and yarn test.
The project is small, so it shouldn't be much trouble to clone:
I've cloned your projected an ran jest --watch and it checks out. But that seems to be due to Jest using the working directory as ./node_modules/jest../jest-cli, which does not contain tests.
If you run jest --watch . (note the . that specifies the current working directory) it works fine.
I've submitted a pull request to your project fixing this issue. Can you check it out? :)
Very cool. That FSEvents error came back, but went away again after installing watchman from homebrew. Thanks a ton for the fix, @rafaelramalho19! Since there's no problem with Jest here, I guess I'll close the issue.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
npm t
, andnode_modules/.bin/jest --watch
do not run my test files.node_modules/.bin/jest --watchAll
does find and run my testsThis is a project I had bootstrapped with CRA and then immediately ejected so I could specify a different path for my tests in package.json.
npm t
was working fine until my last commit, which gave me this spectacularly fun error:I have since:
--no-cache
flag.git
While the FSEvents error has gone away, Jest still does not find my test files. The only way that I can make jest --watch work is to remove my
.git
folder from the project, at which point everything seems to work just fine.If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can
yarn install
andyarn test
.The project is small, so it shouldn't be much trouble to clone:
https://github.com/PortableStick/reddit-react
What is the expected behavior?
It should begin testing and watch for changes normally.
Please provide your exact Jest configuration
Output of
jest --showConfig
:jest-config.txt
Run
npx envinfo --preset jest
in your project directory and paste theresults here
The text was updated successfully, but these errors were encountered: