Skip to content

Commit

Permalink
Watcher: Only track test files has having exclusive tests if at least…
Browse files Browse the repository at this point in the history
… one test was selected
  • Loading branch information
novemberborn committed Aug 18, 2019
1 parent 7dcb473 commit 9e8d28f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/watcher.js
Expand Up @@ -229,7 +229,8 @@ class Watcher {
}

const fileStats = plan.status.stats.byFile.get(evt.testFile);
this.updateExclusivity(evt.testFile, fileStats.declaredTests > fileStats.selectedTests);
const ranExclusiveTests = fileStats.selectedTests > 0 && fileStats.declaredTests > fileStats.selectedTests;
this.updateExclusivity(evt.testFile, ranExclusiveTests);
});
});
}
Expand Down

0 comments on commit 9e8d28f

Please sign in to comment.