@@ -380,7 +380,7 @@ describe('mocha', function() {
380
380
381
381
it ( 'loads built-in mocha.opts file' , ( ) => {
382
382
var run = require ( '../../bin/run-mocha' ) ;
383
- var command = run ( [ 'node' , 'bin/run-mocha' , '"dist/test "' ] , true ) ;
383
+ var command = run ( [ 'node' , 'bin/run-mocha' , '"dist/__tests__ "' ] , true ) ;
384
384
const builtInMochaOptsFile = path . join (
385
385
__dirname ,
386
386
'../../config/mocha.opts' ,
@@ -394,7 +394,7 @@ describe('mocha', function() {
394
394
it ( 'honors --opts option' , ( ) => {
395
395
var run = require ( '../../bin/run-mocha' ) ;
396
396
var command = run (
397
- [ 'node' , 'bin/run-mocha' , '--opts custom/mocha.opts' , '"dist/test "' ] ,
397
+ [ 'node' , 'bin/run-mocha' , '--opts custom/mocha.opts' , '"dist/__tests__ "' ] ,
398
398
true ,
399
399
) ;
400
400
assert (
@@ -410,7 +410,7 @@ describe('mocha', function() {
410
410
411
411
fs . copyFileSync ( buitInMochaOptsPath , destPath ) ;
412
412
413
- var command = run ( [ 'node' , 'bin/run-mocha' , '"dist/test "' ] , true ) ;
413
+ var command = run ( [ 'node' , 'bin/run-mocha' , '"dist/__tests__ "' ] , true ) ;
414
414
assert (
415
415
command . indexOf ( '--opts' ) === - 1 ,
416
416
'should skip built-in mocha.opts file when specific project file exist' ,
0 commit comments