fix(compiler-cli): diagnostics file paths relative to cwd, not tsconfig (#19748)
PR Close #19748
This commit is contained in:
@ -44,6 +44,7 @@ describe('ngc transformer command-line', () => {
|
||||
beforeEach(() => {
|
||||
errorSpy = jasmine.createSpy('consoleError').and.callFake(console.error);
|
||||
basePath = makeTempDir();
|
||||
process.chdir(basePath);
|
||||
write = (fileName: string, content: string) => {
|
||||
const dir = path.dirname(fileName);
|
||||
if (dir != '.') {
|
||||
|
@ -112,7 +112,7 @@ export function setup(): TestSupport {
|
||||
export function expectNoDiagnostics(options: ng.CompilerOptions, diags: ng.Diagnostics) {
|
||||
const errorDiags = diags.filter(d => d.category !== ts.DiagnosticCategory.Message);
|
||||
if (errorDiags.length) {
|
||||
throw new Error(`Expected no diagnostics: ${ng.formatDiagnostics(options, errorDiags)}`);
|
||||
throw new Error(`Expected no diagnostics: ${ng.formatDiagnostics(errorDiags)}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user