From 3e19c9765ef71904d719cf791c581d8de5f090ae Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Fri, 7 Feb 2020 15:06:29 +0100 Subject: [PATCH] test - remove unsupported options, fix bad file warning --- test/unit/browser/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/browser/index.js b/test/unit/browser/index.js index 67f58222681..4fc63177859 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) => {