@@ -100,25 +100,6 @@ describe('executor command', () => {
100100 expect ( cleanStdout ) . toContain ( 'nx run my-lib:code-pushup' ) ;
101101 } ) ;
102102
103- it ( 'should execute print-config executor' , async ( ) => {
104- const cwd = path . join ( testFileDir , 'execute-print-config-command' ) ;
105- await addTargetToWorkspace ( tree , { cwd, project } ) ;
106-
107- const { stdout, code } = await executeProcess ( {
108- command : 'npx' ,
109- args : [ 'nx' , 'run' , `${ project } :code-pushup` , 'print-config' ] ,
110- cwd,
111- } ) ;
112-
113- expect ( code ) . toBe ( 0 ) ;
114- const cleanStdout = removeColorCodes ( stdout ) ;
115- expect ( cleanStdout ) . toContain ( 'nx run my-lib:code-pushup print-config' ) ;
116-
117- await expect ( ( ) =>
118- readJsonFile ( path . join ( cwd , '.code-pushup' , project , 'report.json' ) ) ,
119- ) . rejects . toThrow ( '' ) ;
120- } ) ;
121-
122103 it ( 'should execute print-config executor with output' , async ( ) => {
123104 const cwd = path . join ( testFileDir , 'execute-print-config-command' ) ;
124105 await addTargetToWorkspace ( tree , { cwd, project } ) ;
@@ -144,32 +125,6 @@ describe('executor command', () => {
144125 ) . resolves . not . toThrow ( ) ;
145126 } ) ;
146127
147- it ( 'should execute print-config executor with api key' , async ( ) => {
148- const cwd = path . join ( testFileDir , 'execute-print-config-command' ) ;
149- await addTargetToWorkspace ( tree , { cwd, project } ) ;
150-
151- const { stdout, code } = await executeProcess ( {
152- command : 'npx' ,
153- args : [
154- 'nx' ,
155- 'run' ,
156- `${ project } :code-pushup` ,
157- 'print-config' ,
158- '--upload.apiKey=a123a' ,
159- ] ,
160- cwd,
161- } ) ;
162-
163- expect ( code ) . toBe ( 0 ) ;
164- const cleanStdout = removeColorCodes ( stdout ) ;
165- expect ( cleanStdout ) . toContain ( 'nx run my-lib:code-pushup print-config' ) ;
166- expect ( cleanStdout ) . toContain ( 'a123a' ) ;
167-
168- await expect ( ( ) =>
169- readJsonFile ( path . join ( cwd , '.code-pushup' , project , 'report.json' ) ) ,
170- ) . rejects . toThrow ( '' ) ;
171- } ) ;
172-
173128 it ( 'should execute collect executor and merge target and command-line options' , async ( ) => {
174129 const cwd = path . join ( testFileDir , 'execute-collect-with-merged-options' ) ;
175130 await addTargetToWorkspace (
0 commit comments