MCPcopy Index your code
hub / github.com/angular/components / setupTestTree

Function setupTestTree

src/aria/tree/tree.spec.ts:61–71  ·  view source on GitHub ↗
(textDirection: Direction = 'ltr')

Source from the content-addressed store, hash-verified

59 const ctrlClick = async (target: HTMLElement) => await clickHelper(target, {ctrlKey: true});
60
61 async function setupTestTree(textDirection: Direction = 'ltr') {
62 TestBed.configureTestingModule({
63 providers: [provideFakeDirectionality(textDirection)],
64 });
65
66 fixture = TestBed.createComponent(TestTreeComponent);
67 testComponent = fixture.componentInstance;
68
69 await fixture.whenStable();
70 defineTestVariables();
71 }
72
73 function defineTestVariables() {
74 const treeDebugElement = fixture.debugElement.query(By.directive(Tree));

Callers 1

tree.spec.tsFile · 0.85

Calls 2

defineTestVariablesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…