build: fix failing compiler-cli tests on windows (#28550)

Note that this fixes `compiler-cli` tests within `compiler-cli/test`,
but there seem to be remaining `ngcc` tests within `compiler-cli/src`
which aren't working on Windows. This is out-of-scope for this commit.

PR Close #28550
This commit is contained in:
Paul Gschwendtner
2019-01-25 19:50:08 +01:00
committed by Matias Niemelä
parent 91ce8c17ff
commit c378402af4
5 changed files with 96 additions and 62 deletions

View File

@ -54,6 +54,7 @@ describe('ngc transformer command-line', () => {
"baseUrl": ".",
"declaration": true,
"target": "es5",
"newLine": "lf",
"module": "es2015",
"moduleResolution": "node",
"lib": ["es6", "dom"],
@ -102,7 +103,7 @@ describe('ngc transformer command-line', () => {
const exitCode = main(['-p', basePath], errorSpy);
expect(errorSpy).toHaveBeenCalledWith(
`error TS6053: File '` + path.join(basePath, 'test.ts') + `' not found.` +
`error TS6053: File '` + path.posix.join(basePath, 'test.ts') + `' not found.` +
'\n');
expect(exitCode).toEqual(1);
});