MCPcopy Index your code
hub / github.com/angular/angular / configureCompiler

Function configureCompiler

packages/compiler/test/i18n/integration_common.ts:184–194  ·  view source on GitHub ↗
(translationsToMerge: string, format: string)

Source from the content-addressed store, hash-verified

182`;
183
184export async function configureCompiler(translationsToMerge: string, format: string) {
185 TestBed.configureCompiler({
186 providers: [
187 {provide: ResourceLoader, useValue: jasmine.createSpyObj('ResourceLoader', ['get'])},
188 FrLocalization.PROVIDE,
189 {provide: TRANSLATIONS, useValue: translationsToMerge},
190 {provide: TRANSLATIONS_FORMAT, useValue: format},
191 ],
192 });
193 TestBed.configureTestingModule({declarations: [I18nComponent]});
194}
195
196export function createComponent(html: string) {
197 const tb: ComponentFixture<I18nComponent> = TestBed.overrideTemplate(

Calls 2

configureCompilerMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…