File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11import type { Tree } from '@nx/devkit' ;
22import path from 'node:path' ;
3+ import * as process from 'node:process' ;
34import { readProjectConfiguration } from 'nx/src/generators/utils/project-configuration' ;
45import { afterEach , expect } from 'vitest' ;
56import { generateCodePushupConfig } from '@code-pushup/nx-plugin' ;
@@ -197,11 +198,14 @@ describe('nx-plugin', () => {
197198
198199 const cleanStdout = removeColorCodes ( stdout ) ;
199200 // Nx command
201+ process . stdout . write ( cleanStdout ) ; // For easier debugging
200202 expect ( cleanStdout ) . toContain ( 'nx run my-lib:code-pushup' ) ;
201203 // Run CLI executor
202204 expect ( cleanStdout ) . toContain ( 'DryRun execution of:' ) ;
203205 expect ( cleanStdout ) . toContain ( 'npx @code-pushup/cli' ) ;
204- expect ( cleanStdout ) . toContain ( '--dryRun --verbose' ) ;
206+ expect ( cleanStdout ) . toContain ( '--dryRun' ) ;
207+ expect ( cleanStdout ) . not . toContain ( '--verbose' ) ;
208+ expect ( cleanStdout ) . toContain ( 'CP_VERBOSE=true' ) ;
205209 } ) ;
206210
207211 it ( 'should consider plugin option bin in executor target' , async ( ) => {
You can’t perform that action at this time.
0 commit comments