fix(compiler): return enableIvy true when using readConfiguration
(#32234)
PR Close #32234
This commit is contained in:
@ -55,4 +55,26 @@ describe('perform_compile', () => {
|
||||
expect(options.skipMetadataEmit).toBe(true);
|
||||
});
|
||||
|
||||
it(`should return 'enableIvy: true' when enableIvy is not defined in "angularCompilerOptions"`,
|
||||
() => {
|
||||
writeSomeConfigs();
|
||||
const {options} = readConfiguration(path.resolve(basePath, 'tsconfig-level-1.json'));
|
||||
expect(options.enableIvy).toBe(true);
|
||||
});
|
||||
|
||||
it(`should return 'enableIvy: false' when enableIvy is disabled in "angularCompilerOptions"`,
|
||||
() => {
|
||||
writeSomeConfigs();
|
||||
support.writeFiles({
|
||||
'tsconfig-level-3.json': `{
|
||||
"angularCompilerOptions": {
|
||||
"enableIvy": false
|
||||
}
|
||||
}
|
||||
`,
|
||||
});
|
||||
|
||||
const {options} = readConfiguration(path.resolve(basePath, 'tsconfig-level-1.json'));
|
||||
expect(options.enableIvy).toBe(false);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user