Skip to content

Commit 93d1d40

Browse files
committed
refactor: fix e2e
1 parent f1dd383 commit 93d1d40

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,14 @@ describe('nx-plugin', () => {
192192

193193
const { stdout, stderr } = await executeProcess({
194194
command: 'npx',
195-
args: ['nx', 'run', `${project}:code-pushup`, '--dryRun'],
195+
args: ['nx', 'run', `${project}:code-pushup`, '--dryRun', '--verbose'],
196196
cwd,
197197
});
198198

199-
const cleanStderr = removeColorCodes(stderr);
200-
// @TODO create test environment for working plugin. This here misses package-lock.json to execute correctly
201-
expect(cleanStderr).toContain('DryRun execution of: npx @code-pushup/cli');
202-
203199
const cleanStdout = removeColorCodes(stdout);
200+
// @TODO create test environment for working plugin. This here misses package-lock.json to execute correctly
201+
expect(cleanStdout).toContain('Executing command:');
202+
expect(cleanStdout).toContain('npx @code-pushup/cli');
204203
expect(cleanStdout).toContain(
205204
'NX Successfully ran target code-pushup for project my-lib',
206205
);

0 commit comments

Comments
 (0)