Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/unit/browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const minimist = require('minimist');
* @type {{
* run: string;
* grep: string;
* runGlob: string;
* browser: string;
* reporter: string;
* 'reporter-options': string;
Expand All @@ -38,7 +39,7 @@ const minimist = require('minimist');
*/
const args = minimist(process.argv.slice(2), {
boolean: ['build', 'debug', 'sequential', 'help'],
string: ['run', 'grep', 'browser', 'reporter', 'reporter-options', 'tfs'],
string: ['run', 'grep', 'runGlob', 'browser', 'reporter', 'reporter-options', 'tfs'],
default: {
build: false,
browser: ['chromium', 'firefox', 'webkit'],
Expand All @@ -47,6 +48,7 @@ const args = minimist(process.argv.slice(2), {
},
alias: {
grep: ['g', 'f'],
runGlob: ['glob', 'runGrep'],
debug: ['debug-browser'],
help: 'h'
},
Expand Down Expand Up @@ -125,7 +127,7 @@ const testModules = (async function () {
} else {
// glob patterns (--glob)
const defaultGlob = '**/*.test.js';
const pattern = args.run || defaultGlob;
const pattern = args.runGlob || defaultGlob;
isDefaultModules = pattern === defaultGlob;

promise = new Promise((resolve, reject) => {
Expand Down