Skip to content

Commit 69cfc76

Browse files
author
Jonathan Ginsburg
committedFeb 3, 2022
fix: warn when singleRun and autoWatch are false
Setting `singleRun` and `autoWatch` to `false` will not immediately run anything. Warn the user about this.
1 parent 839578c commit 69cfc76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎lib/server.js

+4
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ class Server extends KarmaEventEmitter {
9696

9797
this.log.debug('Final config', util.inspect(config, false, /** depth **/ null))
9898

99+
if (!config.autoWatch && !config.singleRun) {
100+
this.log.warn('`autowatch` and `singleRun` are both `false`. In order to execute tests use `karma run`.')
101+
}
102+
99103
let modules = [{
100104
helper: ['value', helper],
101105
logger: ['value', logger],

0 commit comments

Comments
 (0)
Please sign in to comment.