Skip to content

Commit

Permalink
fix(repo): remove command from the output to match test (#15950)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored Mar 30, 2023
1 parent 9f395e8 commit 482a77d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion e2e/nx-misc/src/misc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ describe('Nx Commands', () => {
it('should show the list of projects', () => {
const app1 = uniq('myapp');
const app2 = uniq('myapp');
expect(runCLI('show projects')).toEqual('');
expect(
runCLI('show projects').replace(/.*nx show projects( --verbose)?\n/, '')
).toEqual('');

runCLI(`generate @nrwl/web:app ${app1}`);
runCLI(`generate @nrwl/web:app ${app2}`);
Expand Down
7 changes: 6 additions & 1 deletion e2e/nx-run/src/affected-graph.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,12 @@ describe('Nx Affected and Graph Tests', () => {

const affectedProjects = runCLI(
'print-affected --uncommitted --select projects'
).split(', ');
)
.replace(
/.*nx print-affected --uncommitted --select projects( --verbose)?\n/,
''
)
.split(', ');

expect(affectedProjects).toContain(myapp);
expect(affectedProjects).toContain(myapp2);
Expand Down

0 comments on commit 482a77d

Please sign in to comment.