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

Class TestComponent

packages/angular-query/src/__tests__/signal-proxy.test.ts:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37 describe('in component fixture', () => {
38 @Component({
39 selector: 'app-test',
40 standalone: true,
41 template: '{{ proxy.number() }}',
42 changeDetection: ChangeDetectionStrategy.OnPush,
43 })
44 class TestComponent {
45 number = input.required<number>()
46 obj = computed(() => ({ number: this.number() }))
47 proxy = signalProxy(this.obj, ['number'])
48 shortNumber = this.proxy.number
49 }
50
51 beforeEach(() => {
52 TestBed.configureTestingModule({

Callers

nothing calls this directly

Calls 2

signalProxyFunction · 0.90
ComponentFunction · 0.50

Tested by

no test coverage detected