From dd78ba0368986bcb74901df5deb6a5b0dd7c696e Mon Sep 17 00:00:00 2001 From: Josh Kelley Date: Thu, 14 Oct 2021 08:35:29 -0400 Subject: [PATCH] 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. --- karma.conf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),