This commit is contained in:
Simon Knott 2024-10-04 16:22:06 +02:00
parent 3548155c9d
commit 5d4d1fde7c
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -302,7 +302,7 @@ async function runTests(watchOptions: WatchModeOptions, testServerConnection: Te
}) {
printConfiguration(watchOptions, options?.title);
void readKeyPress((text: string, key: any) => {
const waitForDone = readKeyPress((text: string, key: any) => {
if (isInterrupt(text, key)) {
testServerConnection.stopTestsNoReply({});
return 'done';
@ -318,7 +318,7 @@ async function runTests(watchOptions: WatchModeOptions, testServerConnection: Te
reuseContext: connectWsEndpoint ? true : undefined,
workers: connectWsEndpoint ? 1 : undefined,
headed: connectWsEndpoint ? true : undefined,
});
}).finally(() => waitForDone.cancel());
}
function readCommand() {