Permalink
Browse files

fixes #645 (#646)

  • Loading branch information...
hexsprite authored and samhatoum committed Oct 11, 2017
1 parent ecc11d7 commit 1d0a210bc1461de1e970c3183664ce1441129096
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/lib/chimp.js
View
@@ -240,6 +240,7 @@ Chimp.prototype.watch = function () {
this.watcher = chokidar.watch(watchDirectories, {
ignored: /[\/\\](\.|node_modules)/,
ignoreInitial: true,
persistent: true,
usePolling: this.options.watchWithPolling
});
@@ -272,7 +273,7 @@ Chimp.prototype.watch = function () {
log.info(`[chimp] Watching features with tagged with ${watched.join()}`.white);
// start watching
self.watcher.on('all', function (event, path) {
self.watcher.on('all', _.debounce(function (event, path) {
// removing feature files should not rerun
if (event === 'unlink' && path.match(/\.feature$/)) {
@@ -282,7 +283,7 @@ Chimp.prototype.watch = function () {
log.debug('[chimp] file changed');
self.rerun();
});
}, 500));
log.debug('[chimp] watcher ready, running for the first time');
self.rerun();

0 comments on commit 1d0a210

Please sign in to comment.