Skip to content
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

Cannot use jest --watch without SCM #4719

Closed
cyphernull opened this issue Oct 18, 2017 · 4 comments
Closed

Cannot use jest --watch without SCM #4719

cyphernull opened this issue Oct 18, 2017 · 4 comments

Comments

@cyphernull
Copy link

Do you want to request a feature or report a bug?
bug
What is the current behavior?
When I run yarn test --watch , it's never going to work. and reports many errors.

Output

My package.json file:

"scripts": {
    "build": "webpack",
    "dev-server": "webpack-dev-server",
    "test":"jest"
  },

I followed someones' guide that run yarn test -- --watch still not working.
It's my first time using a testing tool, is there anything ignored?
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.

What is the expected behavior?

Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest : 21.2.1
node : 8.5.0
yarn : 1.2.1
system: macOS High Sierra 10.13

@thymikee
Copy link
Collaborator

Looks like you don't run in git/mercury repository? cc @aaronabramov

@cyphernull
Copy link
Author

@thymikee yep, --watch works after repository initialized。

@thymikee thymikee changed the title Cannot use jest --watch Cannot use jest --watch without SCM Oct 18, 2017
@SimenB
Copy link
Member

SimenB commented Oct 18, 2017

Duplicate of #4419

@SimenB SimenB marked this as a duplicate of #4419 Oct 18, 2017
@SimenB SimenB closed this as completed Oct 18, 2017
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants