don't copy lastrun.failedTestIDs

This commit is contained in:
Simon Knott 2024-09-03 08:49:40 +02:00
parent 835320908a
commit fce88122c6
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -221,7 +221,7 @@ export async function runWatchModeLoop(configLocation: ConfigLocation, initialOp
} else if (lastRun.type === 'changed') { } else if (lastRun.type === 'changed') {
await runTests(options, testServerConnection, { title: 're-running tests', testIds: lastRun.dirtyTestIds }); await runTests(options, testServerConnection, { title: 're-running tests', testIds: lastRun.dirtyTestIds });
} else if (lastRun.type === 'failed') { } else if (lastRun.type === 'failed') {
await runTests({}, testServerConnection, { title: 're-running tests', testIds: [...lastRun.failedTestIds!] }); await runTests({}, testServerConnection, { title: 're-running tests', testIds: lastRun.failedTestIds });
} }
continue; continue;
} }