From 13c5019ac9ca5143de27c04c4bf1d6d3dda44ecc Mon Sep 17 00:00:00 2001 From: Michael Glass Date: Sat, 31 Dec 2022 20:05:10 +0100 Subject: [PATCH] fix(playwright-test): _removeOutputDirs called without await always returns truthy (#19771) --- packages/playwright-test/src/runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright-test/src/runner.ts b/packages/playwright-test/src/runner.ts index f9b7ca23f2223..e9cb606c20927 100644 --- a/packages/playwright-test/src/runner.ts +++ b/packages/playwright-test/src/runner.ts @@ -472,7 +472,7 @@ export class Runner { return { status: 'passed' }; // Remove output directores. - if (!this._removeOutputDirs(options)) + if (!await this._removeOutputDirs(options)) return { status: 'failed' }; // Run Global setup.