diff --git a/projects/testing-library/src/lib/models.ts b/projects/testing-library/src/lib/models.ts index 1f33192..0933952 100644 --- a/projects/testing-library/src/lib/models.ts +++ b/projects/testing-library/src/lib/models.ts @@ -78,8 +78,25 @@ export interface RenderComponentOptions( ): Promise> { const { dom: domConfig, ...globalConfig } = getConfig(); const { - detectChanges: detectChangesOnRender = true, + detectChanges: detectChangesDeprecated = true, + detectChangesOnRender: detectChangesOnRenderInput, declarations = [], imports = [], providers = [], @@ -63,6 +64,8 @@ export async function render( defaultImports = [], } = { ...globalConfig, ...renderOptions }; + const detectChangesOnRender = + detectChangesOnRenderInput === undefined ? detectChangesDeprecated : detectChangesOnRenderInput; dtlConfigure({ eventWrapper: (cb) => { const result = cb();