Skip to content

Commit 7c2d512

Browse files
committed
only log warning msg once
1 parent fb97ce9 commit 7c2d512

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,20 +108,14 @@ 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;
124117
this.mergeVideos = reporterConfig?.mergeVideos === true;
118+
this.shouldUpload = reporterConfig?.upload !== false;
125119
this.playwrightVersion = 'unknown';
126120

127121
this.webAssetsDir =

0 commit comments

Comments
 (0)