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 {
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);
});