@@ -13,22 +13,24 @@ exports.createJestCommand = function createJestCommand(prog) {
1313 . option ( '-e, --exclude' , 'Ignore pattern string.' )
1414 . option (
1515 '-I, --input' ,
16- 'Input patterns for the "lint" command, defaults to src and testing dirs.' ,
16+ 'Input patterns for the command, defaults to src and testing dirs.' ,
1717 )
1818 . option (
1919 '-m, --testPathPattern' ,
20- 'A regexp pattern string that is matched against all tests paths before executing the test .' ,
20+ 'A regexp pattern string that is matched against all matched paths before executing.' ,
2121 )
2222 . option (
2323 '-t, --testNamePattern' ,
2424 'Run only tests with a name that matches the regex pattern' ,
2525 )
2626 . option ( '-o, --onlyChanged' , 'Run only on changed packages' )
27- . action ( async ( argv ) => {
27+ . action ( async function ssss ( argv ) {
2828 // switch the env set by default when running Jest. For ensurance.
2929 process . env . NODE_ENV = name ;
3030
31+ // console.log(arguments);
3132 const opts = { ...argv } ;
33+ // console.log('xxxx', opts);
3234
3335 const ignores = opts . exclude ;
3436 const inputs = opts . input ;
@@ -49,6 +51,8 @@ exports.createJestCommand = function createJestCommand(prog) {
4951 delete opts [ key ] ;
5052 } ) ;
5153
54+ if ( opts . _ ) opts . _ . shift ( ) ;
55+
5256 const flags = toFlags ( opts , { allowCamelCase : true } ) ;
5357 // console.log(opts, flags);
5458 const configDir = path . join ( __dirname , 'configs' , name ) ;
0 commit comments