MCPcopy Create free account
hub / github.com/TanStack/query / TestComponent

Class TestComponent

packages/angular-query/src/__tests__/pending-tasks.test.ts:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 const app = TestBed.inject(ApplicationRef)
87
88 @Component({
89 selector: 'app-test',
90 template: '',
91 changeDetection: ChangeDetectionStrategy.OnPush,
92 })
93 class TestComponent {
94 query = injectQuery(() => ({
95 queryKey: ['sync'],
96 queryFn: () => 'instant-data',
97 }))
98 }
99
100 const fixture = TestBed.createComponent(TestComponent)
101 fixture.autoDetectChanges()

Callers

nothing calls this directly

Calls 3

sleepFunction · 0.90
injectQueryFunction · 0.85
ComponentFunction · 0.50

Tested by

no test coverage detected