From 869487f3e5ab994398e40cfa7039acea5e0ca93f Mon Sep 17 00:00:00 2001 From: Adel Bensaad Date: Fri, 4 Oct 2024 10:36:19 +0100 Subject: [PATCH] chore: skip ReportPortal integration for Dependabot PRs (#585) --- jest.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index b723319d0..af31beaeb 100644 --- a/jest.config.js +++ b/jest.config.js @@ -36,10 +36,13 @@ const reportPortalConfig = [ }, ] +const isDependabotPR = process.env.GITHUB_ACTOR === 'dependabot[bot]' + const isReportPortalSetup = process.env.REPORTPORTAL_API_KEY !== undefined && process.env.REPORTPORTAL_ENDPOINT !== undefined && - process.env.REPORTPORTAL_PROJECT !== undefined + process.env.REPORTPORTAL_PROJECT !== undefined && + !isDependabotPR module.exports = { transformIgnorePatterns: [