| 349 | |
| 350 | const source = signal(''); |
| 351 | @Component({ |
| 352 | changeDetection: ChangeDetectionStrategy.OnPush, |
| 353 | template: '{{ data }}', |
| 354 | }) |
| 355 | class TestCmp { |
| 356 | cdr = inject(ChangeDetectorRef); |
| 357 | data = ''; |
| 358 | effectRef = effect(() => { |
| 359 | if (this.data !== source()) { |
| 360 | this.data = source(); |
| 361 | this.cdr.markForCheck(); |
| 362 | } |
| 363 | }); |
| 364 | } |
| 365 | |
| 366 | const fix = TestBed.createComponent(TestCmp); |
| 367 | await fix.whenStable(); |
nothing calls this directly
no test coverage detected
searching dependent graphs…