Skip to content

Commit

Permalink
test: ensure ignore relative paths
Browse files Browse the repository at this point in the history
(when asked)
  • Loading branch information
remy committed Oct 7, 2019
1 parent eead311 commit d5b9891
Show file tree
Hide file tree
Showing 4 changed files with 1,093 additions and 722 deletions.
7 changes: 6 additions & 1 deletion lib/monitor/watch.js
Expand Up @@ -58,6 +58,11 @@ function watch() {
persistent: true,
usePolling: config.options.legacyWatch || false,
interval: config.options.pollingInterval,
// note to future developer: I've gone back and forth on adding `cwd`
// to the props and in some cases it fixes bugs but typically it causes
// bugs elsewhere (since nodemon is used is so many ways). the final
// decision is to *not* use it at all and work around it
// cwd: ...
};

if (utils.isWindows) {
Expand Down Expand Up @@ -85,7 +90,7 @@ function watch() {

watchedFiles.push(file);
bus.emit('watching', file);
debug('watching dir: %s', file);
debug('chokidar watching: %s', file);
});
watcher.on('ready', function () {
watchedFiles = Array.from(new Set(watchedFiles)); // ensure no dupes
Expand Down

0 comments on commit d5b9891

Please sign in to comment.