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

Method createDirective

packages/core/testing/src/test_bed.ts:441–446  ·  view source on GitHub ↗
(
    directive: Type<T>,
    options?: TestDirectiveOptions,
  )

Source from the content-addressed store, hash-verified

439 }
440
441 static createDirective<T>(
442 directive: Type<T>,
443 options?: TestDirectiveOptions,
444 ): DirectiveFixture<T> {
445 return TestBedImpl.INSTANCE.createDirective(directive, options);
446 }
447
448 static getLastFixture<T = unknown>(): ComponentFixture<T> {
449 return TestBedImpl.INSTANCE.getLastFixture();

Callers

nothing calls this directly

Calls 9

injectMethod · 0.95
getDirectiveDefFunction · 0.85
mapMethod · 0.80
createDirectiveMethod · 0.65
joinMethod · 0.65
runMethod · 0.65
stringifyFunction · 0.50
initFunction · 0.50
filterMethod · 0.45

Tested by

no test coverage detected