Skip to content

Commit

Permalink
NODE - make sure to watch a unique set of files
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Åström committed Nov 9, 2017
1 parent d6c2c86 commit c496eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const node = {
let removeListeners = runTests(files, srcFiles, argv);
if (argv.watch) {
// We need to watch source files also
chokidar.watch([...files, ...srcFiles]).on('change', () => {
chokidar.watch([...new Set([...files, ...srcFiles])]).on('change', () => {
removeListeners();
removeListeners = runTests(files, srcFiles, argv);
});
Expand Down

0 comments on commit c496eb6

Please sign in to comment.