@@ -107,10 +107,12 @@ describe('nx-plugin', () => {
107107 expect ( code ) . toBe ( 0 ) ;
108108
109109 expect ( projectJson . targets ) . toEqual ( {
110- 'code-pushup' : expect . objectContaining ( {
111- executor : 'XYZ:autorun' ,
112- options : expect . any ( Object ) ,
113- configurations : expect . any ( Object ) ,
110+ 'code-pushup--configuration' : expect . objectContaining ( {
111+ executor : 'nx:run-commands' ,
112+ options : {
113+ command :
114+ 'nx g XYZ:configuration --skipTarget --targetName="code-pushup" --project="my-lib"' ,
115+ } ,
114116 parallelism : true ,
115117 } ) ,
116118 } ) ;
@@ -146,7 +148,7 @@ describe('nx-plugin', () => {
146148 expect ( code ) . toBe ( 0 ) ;
147149
148150 expect ( projectJson . targets ) . toStrictEqual ( {
149- [ 'code-pushup' ] : expect . objectContaining ( {
151+ 'code-pushup' : expect . objectContaining ( {
150152 configurations : { } ,
151153 executor : `@code-pushup/nx-plugin:autorun` ,
152154 options : { } ,
@@ -208,9 +210,12 @@ describe('nx-plugin', () => {
208210
209211 expect ( code ) . toBe ( 0 ) ;
210212
211- expect ( projectJson . targets ) . toStrictEqual ( {
212- [ 'code-pushup' ] : expect . objectContaining ( {
213+ // FIXME: output has empty configurations object so this passes
214+ expect ( projectJson . targets ) . toEqual ( {
215+ 'code-pushup' : expect . objectContaining ( {
213216 executor : 'XYZ:autorun' ,
217+ options : expect . any ( Object ) ,
218+ configurations : expect . any ( Object ) ,
214219 } ) ,
215220 } ) ;
216221 } ) ;
@@ -232,7 +237,7 @@ describe('nx-plugin', () => {
232237 expect ( code ) . toBe ( 0 ) ;
233238
234239 expect ( projectJson . targets ) . toStrictEqual ( {
235- [ 'code-pushup' ] : expect . objectContaining ( {
240+ 'code-pushup' : expect . objectContaining ( {
236241 executor : `@code-pushup/nx-plugin:autorun` ,
237242 options : {
238243 projectPrefix : 'cli' ,
0 commit comments