From 065188e51048357ac4e6880dcf69c3166afc552e Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Mon, 28 Nov 2022 17:33:38 +0530 Subject: [PATCH] feat(test): Improved stress test test selection logic --- tests/playwright/scripts/stressTestNewlyAddedTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright/scripts/stressTestNewlyAddedTest.js b/tests/playwright/scripts/stressTestNewlyAddedTest.js index 6e37eafb81..93d1d2b9dd 100644 --- a/tests/playwright/scripts/stressTestNewlyAddedTest.js +++ b/tests/playwright/scripts/stressTestNewlyAddedTest.js @@ -5,7 +5,7 @@ const exec = util.promisify(require('child_process').exec); // Get items from `git diff develop' void (async () => { - const { stdout } = await exec(`git diff develop | grep test\\(`); + const { stdout } = await exec(`git diff develop -- *.spec.ts **/*.spec.ts | grep test\\(`); // eslint-disable-next-line no-undef const dbType = process.env.E2E_DB_TYPE;