Skip to content

Commit 21511d4

Browse files
author
John Doe
committed
refactor: wip
1 parent 1106a36 commit 21511d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

e2e/nx-plugin-e2e/tests/plugin-create-nodes.e2e.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Tree } from '@nx/devkit';
22
import path from 'node:path';
3+
import * as process from 'node:process';
34
import { readProjectConfiguration } from 'nx/src/generators/utils/project-configuration';
45
import { afterEach, expect } from 'vitest';
56
import { 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 () => {

0 commit comments

Comments
 (0)