diff --git a/e2e/nx-misc/src/misc.test.ts b/e2e/nx-misc/src/misc.test.ts index c85bdb6bfd595..72aeda1e86436 100644 --- a/e2e/nx-misc/src/misc.test.ts +++ b/e2e/nx-misc/src/misc.test.ts @@ -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}`); diff --git a/e2e/nx-run/src/affected-graph.test.ts b/e2e/nx-run/src/affected-graph.test.ts index d0c585cb1cc91..bb123ad6140a7 100644 --- a/e2e/nx-run/src/affected-graph.test.ts +++ b/e2e/nx-run/src/affected-graph.test.ts @@ -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);