File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
packages/compass-e2e-tests Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 22import { createWriteStream , existsSync , promises as fs } from 'fs' ;
33import path from 'path' ;
44import yargs from 'yargs' ;
5- import type { Argv } from 'yargs' ;
65import { hideBin } from 'yargs/helpers' ;
76import https from 'https' ;
87import { pick } from 'lodash' ;
@@ -87,17 +86,10 @@ const argv = yargs(hideBin(process.argv))
8786 return true ;
8887 } ) ;
8988
90- type BuilderCallbackParsedArgs < A extends ( ...args : any [ ] ) => Argv < any > > =
91- ReturnType < ReturnType < A > [ 'parseSync' ] > ;
92-
93- type SmokeTestsContext = BuilderCallbackParsedArgs < typeof argv > ;
89+ type SmokeTestsContext = ReturnType < typeof argv [ 'parseSync' ] > ;
9490
9591async function run ( ) {
96- const parsedArgs = argv . parse ( ) ;
97-
98- if ( 'then' in parsedArgs && typeof parsedArgs . then === 'function' ) {
99- throw new Error ( 'Async args parser is not allowed' ) ;
100- }
92+ const parsedArgs = argv . parseSync ( ) ;
10193
10294 const context = parsedArgs as SmokeTestsContext ;
10395
You can’t perform that action at this time.
0 commit comments