From 866028851845973efc8841eb9fa2e6e2086be30f Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 6 Dec 2022 08:59:28 -0800 Subject: [PATCH] chore: use isProjectSetup instead of set (#19285) --- packages/playwright-test/src/runner.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/playwright-test/src/runner.ts b/packages/playwright-test/src/runner.ts index 3e2de667c5..dd7d241f4b 100644 --- a/packages/playwright-test/src/runner.ts +++ b/packages/playwright-test/src/runner.ts @@ -283,7 +283,7 @@ export class Runner { let result = await this._createFilteredRootSuite(options, filesByProject, new Set(), !!setupFiles.size, setupFiles); if (setupFiles.size) { const allTests = result.rootSuite.allTests(); - const tests = allTests.filter(test => !setupFiles.has(test._requireFile)); + const tests = allTests.filter(test => !test._isProjectSetup); // If >0 tests match and // - none of the setup files match the filter then we run all setup files, // - if the filter also matches some of the setup tests, we'll run only @@ -299,7 +299,7 @@ export class Runner { const projectSetupGroups = []; const testGroups = []; for (const group of allTestGroups) { - if (setupFiles.has(group.requireFile)) + if (group.isProjectSetup) projectSetupGroups.push(group); else testGroups.push(group);