impl refactor

This commit is contained in:
Simon Knott 2024-09-16 16:08:26 +02:00
parent 52a6bdb803
commit 8dc22fecc9
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -152,8 +152,8 @@ export async function runWatchModeLoop(configLocation: ConfigLocation, initialOp
if (bufferMode && command === 'changed')
continue;
const commandToTriggerTestRun = (bufferMode ? 'run' : 'changed');
if (command === commandToTriggerTestRun) {
const shouldRunChangedFiles = bufferMode ? command === 'run' : command === 'changed';
if (shouldRunChangedFiles) {
if (dirtyTestIds.size === 0)
continue;