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

Watching files and running test in docker container. #30

Closed
blaugold opened this issue Jul 10, 2016 · 1 comment
Closed

Watching files and running test in docker container. #30

blaugold opened this issue Jul 10, 2016 · 1 comment

Comments

@blaugold
Copy link

blaugold commented Jul 10, 2016

I would like to run tests inside a docker container and use the watch feature. The source directory is mounted into the container, which is problematic in terms of watching files. The fix is to use polling. With webpack you can use:

watchOptions: {
    poll: true
}

This works well for me when running webpack -w but with mocha-webpack test are only rerun sporadically when files change. Taking a quick look at the source it seems like mocha-webpack takes the webpack.config file and uses webpack for watching. So it should work too.

It would be great if I could get this working reliably.

@zinserjan
Copy link
Owner

Support for watchOptions is added with #35 and released as 0.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants