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') if (bufferMode && command === 'changed')
continue; continue;
const commandToTriggerTestRun = (bufferMode ? 'run' : 'changed'); const shouldRunChangedFiles = bufferMode ? command === 'run' : command === 'changed';
if (command === commandToTriggerTestRun) { if (shouldRunChangedFiles) {
if (dirtyTestIds.size === 0) if (dirtyTestIds.size === 0)
continue; continue;