From: Josh Kelley Date: Thu, 14 Oct 2021 12:35:29 +0000 (-0400) Subject: Don't require --grep to be given on the command line (#9768) X-Git-Tag: v3.6.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd78ba0368986bcb74901df5deb6a5b0dd7c696e;p=thirdparty%2FChart.js.git Don't require --grep to be given on the command line (#9768) This makes it easier to use the `karma` CLI directly, if desired, and makes it easier to use WebStorm's integrated debugger (which makes up `karma` command-line invocations itself). Prior to this change, if `--grep` isn't given, Karma looks for `*undefined*.js` and finds no tests to run. --- diff --git a/karma.conf.js b/karma.conf.js index a9eba037f..3a93f07eb 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -10,7 +10,7 @@ module.exports = function(karma) { .option('verbose', {default: false}) .argv; - const grep = args.grep === true ? '' : args.grep; + const grep = (args.grep === true || args.grep === undefined) ? '' : args.grep; const specPattern = 'test/specs/**/*' + grep + '*.js'; // Use the same rollup config as our dist files: when debugging (npm run dev),