Skip to content

Commit 9e8d28f

Browse files
committed
Watcher: Only track test files has having exclusive tests if at least one test was selected
1 parent 7dcb473 commit 9e8d28f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/watcher.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ class Watcher {
229229
}
230230

231231
const fileStats = plan.status.stats.byFile.get(evt.testFile);
232-
this.updateExclusivity(evt.testFile, fileStats.declaredTests > fileStats.selectedTests);
232+
const ranExclusiveTests = fileStats.selectedTests > 0 && fileStats.declaredTests > fileStats.selectedTests;
233+
this.updateExclusivity(evt.testFile, ranExclusiveTests);
233234
});
234235
});
235236
}

0 commit comments

Comments
 (0)