Skip to content

Commit 9f98fe8

Browse files
committed
only log warning msg once
1 parent fb97ce9 commit 9f98fe8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/reporter.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,13 @@ export default class SauceReporter implements Reporter {
108108
endedAt?: Date;
109109

110110
constructor(reporterConfig: Config) {
111-
this.shouldUpload = reporterConfig?.upload !== false;
112-
if (!hasCredentials() && this.shouldUpload) {
113-
console.warn(
114-
`Credentials not set! Verify SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables.`,
115-
);
116-
}
117-
118111
this.projects = {};
119112
this.buildName = reporterConfig?.buildName || '';
120113
this.tags = reporterConfig?.tags || [];
121114
this.region = reporterConfig?.region || 'us-west-1';
122115
this.outputFile =
123116
reporterConfig?.outputFile || process.env.SAUCE_REPORT_OUTPUT_NAME;
117+
this.shouldUpload = reporterConfig?.upload !== false;
124118
this.mergeVideos = reporterConfig?.mergeVideos === true;
125119
this.playwrightVersion = 'unknown';
126120

0 commit comments

Comments
 (0)