Skip to content

Commit

Permalink
Add other run title env variables as fallbacks (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjduffy authored Nov 28, 2023
1 parent 4cfc2c0 commit 142ad75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/test-utils/src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 142ad75

Please sign in to comment.