Visitar URL original
DeferBlockFixture • Angular
The Wayback Machine - https://web.archive.org/web/20250419055535/https://angular.dev/api/core/testing/DeferBlockFixture
    • Overview
@angular/core/testing

DeferBlockFixture

Class

Represents an individual defer block for testing purposes.

API

  
    class DeferBlockFixture {}
  
  

constructor

DeferBlockFixture
@paramblockDeferBlockDetails
@paramcomponentFixtureComponentFixture<unknown>

render

Promise<void>

Renders the specified state of the defer fixture.

@paramstateDeferBlockState

the defer state to render

@returnsPromise<void>

getDeferBlocks

Promise<DeferBlockFixture[]>

Retrieves all nested child defer block fixtures in a given defer block.

@returnsPromise<DeferBlockFixture[]>
Jump to details