diff --git a/test/unit/browser/index.js b/test/unit/browser/index.js index 64790c8245a46fa2103e4074a18655aed25a73b0..21edb93655e3e4931d92070dcff73b8fb1dfae45 100644 --- a/test/unit/browser/index.js +++ b/test/unit/browser/index.js @@ -17,10 +17,10 @@ const playwright = require('playwright'); // opts const defaultReporterName = process.platform === 'win32' ? 'list' : 'spec'; const optimist = require('optimist') - .describe('grep', 'only run tests matching ').alias('grep', 'g').alias('grep', 'f').string('grep') + // .describe('grep', 'only run tests matching ').alias('grep', 'g').alias('grep', 'f').string('grep') + // .describe('build', 'run with build output (out-build)').boolean('build') .describe('run', 'only run tests matching ').string('run') .describe('glob', 'only run tests matching ').string('glob') - .describe('build', 'run with build output (out-build)').boolean('build') .describe('debug', 'do not run browsers headless').boolean('debug') .describe('browser', 'browsers in which tests should run').string('browser').default('browser', ['chromium']) .describe('reporter', 'the mocha reporter').string('reporter').default('reporter', defaultReporterName) @@ -84,7 +84,7 @@ const testModules = (async function () { // glob patterns (--glob) const defaultGlob = '**/*.test.js'; const pattern = argv.glob || defaultGlob - isDefaultModules = argv.glob === defaultGlob; + isDefaultModules = pattern === defaultGlob; promise = new Promise((resolve, reject) => { glob(pattern, { cwd: out }, (err, files) => {