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.
.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),