chore(repo): fix e2e test to work on windows
This commit is contained in:
parent
c6c00fcee6
commit
633f8a8f08
@ -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,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
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);
|
}, 1000000);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user