MCPcopy Create free account
hub / github.com/angular/angular / configureCompiler

Function configureCompiler

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

Source from the content-addressed store, hash-verified

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

Calls 1

configureCompilerMethod · 0.65

Tested by

no test coverage detected