mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
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.
This commit is contained in:
parent
9a47395010
commit
dd78ba0368
@ -10,7 +10,7 @@ module.exports = function(karma) {
|
|||||||
.option('verbose', {default: false})
|
.option('verbose', {default: false})
|
||||||
.argv;
|
.argv;
|
||||||
|
|
||||||
const grep = args.grep === true ? '' : args.grep;
|
const grep = (args.grep === true || args.grep === undefined) ? '' : args.grep;
|
||||||
const specPattern = 'test/specs/**/*' + grep + '*.js';
|
const specPattern = 'test/specs/**/*' + grep + '*.js';
|
||||||
|
|
||||||
// Use the same rollup config as our dist files: when debugging (npm run dev),
|
// Use the same rollup config as our dist files: when debugging (npm run dev),
|
||||||
|
Loading…
Reference in New Issue
Block a user