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:

committed by
Matias Niemelä

parent
91ce8c17ff
commit
c378402af4
@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user