Skip to content

Commit

Permalink
fix: warn when singleRun and autoWatch are false
Browse files Browse the repository at this point in the history
Setting `singleRun` and `autoWatch` to `false` will not immediately run
anything. Warn the user about this.
  • Loading branch information
Jonathan Ginsburg committed Feb 3, 2022
1 parent 839578c commit 69cfc76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/server.js
Expand Up @@ -96,6 +96,10 @@ class Server extends KarmaEventEmitter {

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

if (!config.autoWatch && !config.singleRun) {
this.log.warn('`autowatch` and `singleRun` are both `false`. In order to execute tests use `karma run`.')
}

let modules = [{
helper: ['value', helper],
logger: ['value', logger],
Expand Down

0 comments on commit 69cfc76

Please sign in to comment.