File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,9 @@ import Mocha from 'mocha';
6
6
import path from 'path' ;
7
7
import { defaultTimeout } from './constants' ;
8
8
import { getModelArg , getOldConfigArg } from './getModelArg' ;
9
- import yargs from 'yargs' ;
10
9
11
10
export async function run ( ) : Promise < void > {
12
11
try {
13
- const argv = yargs ( process . argv . slice ( 2 ) ) . option ( 'exclude' , {
14
- type : 'string' ,
15
- description : 'Glob pattern of tests to exclude' ,
16
- } ) . parseSync ( ) ;
17
- const excludePattern = argv . exclude ? [ argv . exclude ] : [ ] ;
18
-
19
12
const oldConfigSuffix = getOldConfigArg ( ) ? '_oldConfig' : '' ;
20
13
const fileName = `${ process . platform } _model-${ getModelArg ( ) } _Node-${ process . version } ${ oldConfigSuffix } .xml` ;
21
14
const options : Mocha . MochaOptions = {
@@ -34,7 +27,7 @@ export async function run(): Promise<void> {
34
27
35
28
const mocha = new Mocha ( options ) ;
36
29
37
- const files : string [ ] = await globby ( [ '**/**.test.js' , ... excludePattern . map ( p => `! ${ p } ` ) ] , { cwd : __dirname } ) ;
30
+ const files : string [ ] = await globby ( '**/**.test.js' , { cwd : __dirname } ) ;
38
31
39
32
files . forEach ( ( f ) => mocha . addFile ( path . resolve ( __dirname , f ) ) ) ;
40
33
You can’t perform that action at this time.
0 commit comments