@@ -175,12 +175,12 @@ module.exports = function(config) {
175
175
// Remove text-summary reporter
176
176
testConfig . coverageReporter . reporters = testConfig . coverageReporter . reporters . filter ( obj => obj . type !== 'text-summary' ) ;
177
177
178
- // Use custom hostname to prevent Safari disconnects
179
- // https://support.saucelabs.com/hc/en-us/articles/115010079868-Issues-with-Safari-and-Karma-Test-Runner
180
- testConfig . hostname = 'travis.dev' ;
181
-
182
- // Disable logs to prevent Edge/Safari disconnects
183
- testConfig . logLevel = config . LOG_ERROR ;
178
+ // Travis-specific settings
179
+ if ( 'TRAVIS' in process . env ) {
180
+ // Use custom hostname to prevent Safari disconnects
181
+ // https://support.saucelabs.com/hc/en-us/articles/115010079868-Issues-with-Safari-and-Karma-Test-Runner
182
+ testConfig . hostname = 'travis.dev' ;
183
+ }
184
184
}
185
185
else {
186
186
// eslint-disable-next-line
@@ -189,10 +189,9 @@ module.exports = function(config) {
189
189
`KARMA: localhost:${ testConfig . port } /debug.html\n` ,
190
190
'============================================================\n'
191
191
] . join ( '' ) ) ;
192
-
193
- // Logging: LOG_DISABLE, LOG_ERROR, LOG_WARN, LOG_INFO, LOG_DEBUG
194
- testConfig . logLevel = config . LOG_INFO ;
195
192
}
196
193
194
+ // Logging: LOG_DISABLE, LOG_ERROR, LOG_WARN, LOG_INFO, LOG_DEBUG
195
+ testConfig . logLevel = config . LOG_WARN ;
197
196
config . set ( testConfig ) ;
198
197
} ;
0 commit comments