refactor(core): typo in undecorated-classes-with-di AOT failure message (#33018)
PR Close #33018
This commit is contained in:
parent
c83f5013bf
commit
5437e2da29
@ -177,7 +177,7 @@ function gracefullyCreateProgram(
|
|||||||
|
|
||||||
return {program, compiler};
|
return {program, compiler};
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.warn(`\n${MIGRATION_AOT_FAILURE}. The following project failed: ${tsconfigPath}\n`);
|
logger.warn(`\n${MIGRATION_AOT_FAILURE} The following project failed: ${tsconfigPath}\n`);
|
||||||
logger.error(`${e.toString()}\n`);
|
logger.error(`${e.toString()}\n`);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -1447,7 +1447,7 @@ describe('Undecorated classes with DI migration', () => {
|
|||||||
expect(warnOutput.length).toBe(1);
|
expect(warnOutput.length).toBe(1);
|
||||||
expect(warnOutput[0])
|
expect(warnOutput[0])
|
||||||
.toMatch(
|
.toMatch(
|
||||||
/ensure there are no AOT compilation errors and rerun the migration.*project failed: tsconfig\.json/);
|
/ensure there are no AOT compilation errors and rerun the migration. The following project failed: tsconfig\.json/);
|
||||||
expect(errorOutput.length).toBe(1);
|
expect(errorOutput.length).toBe(1);
|
||||||
expect(errorOutput[0]).toMatch(/Cannot determine the module for class TestComp/);
|
expect(errorOutput[0]).toMatch(/Cannot determine the module for class TestComp/);
|
||||||
expect(infoOutput.join(' '))
|
expect(infoOutput.join(' '))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user