feat: add .ngsummary.ts files to support AOT unit tests
Design doc: https://docs.google.com/document/d/1VmTkz0EbEVSWfEEWEvQ5sXyQXSCvtMOw4t7pKU-jOwc/edit?usp=sharing
This commit is contained in:

committed by
Matias Niemelä

parent
2714644528
commit
547c363473
@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {Compiler, CompilerOptions, Component, Directive, Injector, NgModule, Pipe, Type} from '@angular/core';
|
||||
import {Compiler, CompilerOptions, Component, ComponentFactory, Directive, Injector, NgModule, Pipe, Type} from '@angular/core';
|
||||
|
||||
import {MetadataOverride} from './metadata_override';
|
||||
|
||||
@ -33,6 +33,18 @@ export class TestingCompiler extends Compiler {
|
||||
overridePipe(directive: Type<any>, overrides: MetadataOverride<Pipe>): void {
|
||||
throw unimplemented();
|
||||
}
|
||||
/**
|
||||
* Allows to pass the compile summary from AOT compilation to the JIT compiler,
|
||||
* so that it can use the code generated by AOT.
|
||||
*/
|
||||
loadAotSummaries(summaries: () => any[]) { throw unimplemented(); };
|
||||
|
||||
/**
|
||||
* Gets the component factory for the given component.
|
||||
* This assumes that the component has been compiled before calling this call using
|
||||
* `compileModuleAndAllComponents*`.
|
||||
*/
|
||||
getComponentFactory<T>(component: Type<T>): ComponentFactory<T> { throw unimplemented(); }
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user