| 141 | |
| 142 | it('completes dependent queries before application stability without manual effect flushing', async () => { |
| 143 | @Component({ template: '{{ second.data() }}' }) |
| 144 | class Page { |
| 145 | first = injectQuery(() => ({ |
| 146 | queryKey: ['zoneful-dependency-first'], |
| 147 | queryFn: async () => 'ready', |
| 148 | })) |
| 149 | second = injectQuery(() => ({ |
| 150 | queryKey: ['zoneful-dependency-second'], |
| 151 | enabled: this.first.isSuccess(), |
| 152 | queryFn: async () => 'dependent data', |
| 153 | })) |
| 154 | } |
| 155 | |
| 156 | const fixture = TestBed.createComponent(Page) |
| 157 | fixture.autoDetectChanges() |
nothing calls this directly
no test coverage detected