@@ -4,7 +4,7 @@ import { logging } from '@angular-devkit/core';
4
4
import { createConsoleLogger } from '@angular-devkit/core/node' ;
5
5
import * as colors from 'ansi-colors' ;
6
6
import glob from 'glob' ;
7
- import minimist from 'minimist ' ;
7
+ import yargsParser from 'yargs-parser ' ;
8
8
import * as path from 'path' ;
9
9
import { setGlobalVariable } from './e2e/utils/env' ;
10
10
import { gitClean } from './e2e/utils/git' ;
@@ -25,7 +25,6 @@ Error.stackTraceLimit = Infinity;
25
25
* --ng-tag=TAG Use a specific tag for build snapshots. Similar to ng-snapshots but point to a
26
26
* tag instead of using the latest master.
27
27
* --ng-snapshots Install angular snapshot builds in the test project.
28
- * --ve Use the View Engine compiler.
29
28
* --glob Run tests matching this glob pattern (relative to tests/e2e/).
30
29
* --ignore Ignore tests matching this glob pattern.
31
30
* --reuse=/path Use a path instead of create a new project. That project should have been
@@ -38,9 +37,13 @@ Error.stackTraceLimit = Infinity;
38
37
* --tmpdir=path Override temporary directory to use for new projects.
39
38
* If unnamed flags are passed in, the list of tests will be filtered to include only those passed.
40
39
*/
41
- const argv = minimist ( process . argv . slice ( 2 ) , {
40
+ const argv = yargsParser ( process . argv . slice ( 2 ) , {
42
41
boolean : [ 'debug' , 'ng-snapshots' , 'noglobal' , 'nosilent' , 'noproject' , 'verbose' ] ,
43
42
string : [ 'devkit' , 'glob' , 'ignore' , 'reuse' , 'ng-tag' , 'tmpdir' , 'ng-version' ] ,
43
+ configuration : {
44
+ 'dot-notation' : false ,
45
+ 'camel-case-expansion' : false ,
46
+ } ,
44
47
} ) ;
45
48
46
49
/**
@@ -93,7 +96,7 @@ const tests = allTests.filter((name) => {
93
96
94
97
return argv . _ . some ( ( argName ) => {
95
98
return (
96
- path . join ( process . cwd ( ) , argName ) == path . join ( __dirname , 'e2e' , name ) ||
99
+ path . join ( process . cwd ( ) , argName + '' ) == path . join ( __dirname , 'e2e' , name ) ||
97
100
argName == name ||
98
101
argName == name . replace ( / \. t s $ / , '' )
99
102
) ;
0 commit comments