From 142ad7515f015341256755edd08845c97264fca0 Mon Sep 17 00:00:00 2001 From: Ryan Duffy Date: Tue, 28 Nov 2023 12:42:50 -0800 Subject: [PATCH] Add other run title env variables as fallbacks (#279) --- packages/test-utils/src/reporter.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/test-utils/src/reporter.ts b/packages/test-utils/src/reporter.ts index c118f377..530d971a 100644 --- a/packages/test-utils/src/reporter.ts +++ b/packages/test-utils/src/reporter.ts @@ -247,7 +247,11 @@ class ReplayReporter { parseConfig(config: ReplayReporterConfig = {}, metadataKey?: string) { // always favor environment variables over config so the config can be // overwritten at runtime - this.runTitle = process.env.RECORD_REPLAY_TEST_RUN_TITLE || config.runTitle; + this.runTitle = + process.env.REPLAY_METADATA_TEST_RUN_TITLE || + process.env.RECORD_REPLAY_TEST_RUN_TITLE || + process.env.RECORD_REPLAY_METADATA_TEST_RUN_TITLE || + config.runTitle; this.apiKey = process.env.REPLAY_API_KEY || process.env.RECORD_REPLAY_API_KEY || config.apiKey; this.upload = !!process.env.REPLAY_UPLOAD || !!config.upload;