From 633f8a8f08d68b91ab1e25ddbed195afc21c70a5 Mon Sep 17 00:00:00 2001 From: Victor Savkin Date: Thu, 16 Jun 2022 10:11:46 -0400 Subject: [PATCH] chore(repo): fix e2e test to work on windows --- e2e/cli/src/run.test.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/e2e/cli/src/run.test.ts b/e2e/cli/src/run.test.ts index 14bf6ce4d2..5f8b5294f9 100644 --- a/e2e/cli/src/run.test.ts +++ b/e2e/cli/src/run.test.ts @@ -1,19 +1,12 @@ import { - getPublishedVersion, - isNotWindows, + isWindows, newProject, - readFile, - readJson, runCLI, runCLIAsync, - runCommand, - tmpProjPath, uniq, updateFile, updateProjectConfig, } from '@nrwl/e2e/utils'; -import { renameSync } from 'fs'; -import { packagesWeCareAbout } from 'nx/src/command-line/report'; // describe('Running targets', () => { @@ -62,6 +55,11 @@ describe('Running targets', () => { silent: true, } ); - expect(stdout).toMatch(/ECHOED positional --a=123 --no-b/); + + if (isWindows()) { + expect(stdout).toMatch(/ECHOED "positional" "--a=123" "--no-b"/); + } else { + expect(stdout).toMatch(/ECHOED positional --a=123 --no-b/); + } }, 1000000); });