From 3b7929bb1eb1877a382715029fa5674cd465b2b2 Mon Sep 17 00:00:00 2001 From: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Date: Wed, 24 Jan 2024 19:56:49 +0100 Subject: [PATCH] angular: add deferBlockBehavior to the docs --- docs/angular-testing-library/api.mdx | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/docs/angular-testing-library/api.mdx b/docs/angular-testing-library/api.mdx index 9518a20f1..dad1e3f3b 100644 --- a/docs/angular-testing-library/api.mdx +++ b/docs/angular-testing-library/api.mdx @@ -150,6 +150,42 @@ await render(AppComponent, { }) ``` +### `deferBlockBehavior` + +Set the defer blocks behavior. + +For more info see the +[Angular docs](https://angular.io/api/core/testing/DeferBlockBehavior) + +**default** : `undefined` (uses the Angular default, which is +`DeferBlockBehavior.Manual`) + +**example**: + +```typescript +await render(AppComponent, { + deferBlockBehavior: DeferBlockBehavior.Playthrough, +}) +``` + +### `deferBlockStates` + +Set the initial state of a deferrable blocks in a component. + +For more info see the +[Angular docs](https://angular.io/api/core/testing/DeferBlockState) + +**default** : `undefined` (uses the Angular default, which is +`DeferBlockState.Placeholder`) + +**example**: + +```typescript +await render(FixtureComponent, { + deferBlockStates: DeferBlockState.Loading, +}) +``` + ### `componentProviders` A collection of providers needed to render the component via Dependency