-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Running jest in docker with watch option throw me not supported without git/hg error #5551
Comments
I'm having this issue too, outside of docker. I am running node/jest/yarn natively in MacOS. I experience this with the -u for updating snapshot but also when performing the action described here: |
I use jest@22.4.2 run tests, but throw error :
and I use jest@20.0.4 run tests, but throw error:
my
who can help me? |
@xqlsq what does your package.json look like? |
Good point, not at all. @xqlsq your issue is probably a mismatch in jest versions. If not, please open up a new issue if you think it's a bug in Jest. Keep in mind that this issue tracker is not a help forum |
Fixed by #5696 (unreleased) |
Actually it was me being silly~ Docker image
For anyone puzzled by this issue please take a look at this branch for solution. Thank you guys for answering. |
I have the same problem, but my container DOES have git installed. I even installed watchman on it (built from source) but no luck |
same issue as @chris-fran I have the following on a Docker image git version 2.11.0 |
Same here. |
I used @zushenyan solution it fixed the error for --watch option but it did not reload tests. |
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. |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Running with
jest --watch
in docker exits with--watch is not supported without git/hg, please use --watchAll error
.Running with
jest --watchAll
could run test successfully, however when I am trying to update snapshot with optionu
oro
it still exits with--watch is not supported without git/hg, please use --watchAll
error.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
.https://github.com/zushenyan/docker-jest-issue
What is the expected behavior?
Running Jest in Docker without errors like local machine.
Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.
The text was updated successfully, but these errors were encountered: