From 34afb1afef60309eec6c29abfd3a48b407b3f9a3 Mon Sep 17 00:00:00 2001 From: Paul Roebuck Date: Wed, 20 Feb 2019 12:53:45 -0600 Subject: [PATCH] fix(cli/run.js): Revert default glob to match Mocha-5.2 The old glob 'test' would allow 'test.js' to be used by default (rather than requiring file be placed inside "test" directory. Fixes #3750 --- lib/cli/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/run.js b/lib/cli/run.js index d10b89f637..3a6ba0072c 100644 --- a/lib/cli/run.js +++ b/lib/cli/run.js @@ -245,7 +245,7 @@ exports.builder = yargs => } }) .positional('spec', { - default: ['test/'], + default: ['test'], description: 'One or more files, directories, or globs to test', type: 'array' })