chore(repo): fix e2e test to work on windows

This commit is contained in:
Victor Savkin 2022-06-16 10:11:46 -04:00
parent c6c00fcee6
commit 633f8a8f08
No known key found for this signature in database
GPG Key ID: 39178FEB7698B817

View File

@ -1,19 +1,12 @@
import { import {
getPublishedVersion, isWindows,
isNotWindows,
newProject, newProject,
readFile,
readJson,
runCLI, runCLI,
runCLIAsync, runCLIAsync,
runCommand,
tmpProjPath,
uniq, uniq,
updateFile, updateFile,
updateProjectConfig, updateProjectConfig,
} from '@nrwl/e2e/utils'; } from '@nrwl/e2e/utils';
import { renameSync } from 'fs';
import { packagesWeCareAbout } from 'nx/src/command-line/report';
// //
describe('Running targets', () => { describe('Running targets', () => {
@ -62,6 +55,11 @@ describe('Running targets', () => {
silent: true, silent: true,
} }
); );
if (isWindows()) {
expect(stdout).toMatch(/ECHOED "positional" "--a=123" "--no-b"/);
} else {
expect(stdout).toMatch(/ECHOED positional --a=123 --no-b/); expect(stdout).toMatch(/ECHOED positional --a=123 --no-b/);
}
}, 1000000); }, 1000000);
}); });