From fce88122c6bde8209fc61776262e80e2364d83f0 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Tue, 3 Sep 2024 08:49:40 +0200 Subject: [PATCH] don't copy lastrun.failedTestIDs --- packages/playwright/src/runner/watchMode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright/src/runner/watchMode.ts b/packages/playwright/src/runner/watchMode.ts index 00a7087b21..f99b0be009 100644 --- a/packages/playwright/src/runner/watchMode.ts +++ b/packages/playwright/src/runner/watchMode.ts @@ -221,7 +221,7 @@ export async function runWatchModeLoop(configLocation: ConfigLocation, initialOp } else if (lastRun.type === 'changed') { await runTests(options, testServerConnection, { title: 're-running tests', testIds: lastRun.dirtyTestIds }); } 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; }