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

Jest doesn't watch for changes within docker container #4531

Closed
ghost opened this issue Sep 24, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@ghost
Copy link

commented Sep 24, 2017

Do you want to request a feature or report a bug?
bug

What is the current behavior?
Jest doesn't watch for changes in files from a docker container. In tools like nodemon or babel-watch we have legacy or pooling mode, that doesn't seems to exist in jest cli.

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.
github repo:
https://github.com/chicocode/jest-docker-issue
docker build -t jest_docker .
docker run --rm -it -v "./src:/app/src" jest_docker

If you want to try with watch you should create an github repo first. see here
docker run --rm -ti --entrypoint /bin/bash jest_docker
yarn test --watch

What is the expected behavior?
Re-run tests if source code was changed.

Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.

Docker version
Docker version 17.06.2-ce, build cec0b72

Node version
v8.5.0

Jest version
v21.1.0
@cpojer

This comment has been minimized.

Copy link
Contributor

commented Dec 16, 2017

Yeah, this is unsupported right now but it's unlikely we'll be adding this feature from our side anytime soon. The watch code is all in jest-haste-map, feel free to send a PR to fix this but for now I consider this a wontfix.

@cpojer cpojer closed this Dec 16, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.