diff --git a/README.md b/README.md index 028f721..086644e 100644 --- a/README.md +++ b/README.md @@ -177,15 +177,16 @@ You may also be interested in installing `jest-dom` so you can use ## Version compatibility -| Angular | Angular Testing Library | -| ------- | ---------------------------- | -| 19.x | 17.x, 16.x, 15.x, 14.x, 13.x | -| 18.x | 17.x, 16.x, 15.x, 14.x, 13.x | -| 17.x | 17.x, 16.x, 15.x, 14.x, 13.x | -| 16.x | 14.x, 13.x | -| >= 15.1 | 14.x, 13.x | -| < 15.1 | 12.x, 11.x | -| 14.x | 12.x, 11.x | +| Angular | Angular Testing Library | +| ------- | ---------------------------------- | +| 20.x | 18.x, 17.x, 16.x, 15.x, 14.x, 13.x | +| 19.x | 17.x, 16.x, 15.x, 14.x, 13.x | +| 18.x | 17.x, 16.x, 15.x, 14.x, 13.x | +| 17.x | 17.x, 16.x, 15.x, 14.x, 13.x | +| 16.x | 14.x, 13.x | +| >= 15.1 | 14.x, 13.x | +| < 15.1 | 12.x, 11.x | +| 14.x | 12.x, 11.x | ## Guiding Principles diff --git a/projects/testing-library/src/lib/models.ts b/projects/testing-library/src/lib/models.ts index 656b266..318bd2b 100644 --- a/projects/testing-library/src/lib/models.ts +++ b/projects/testing-library/src/lib/models.ts @@ -506,11 +506,4 @@ export interface Config extends Pick, 'excludeCompon * Imports that are added to the imports */ defaultImports?: (Type | ModuleWithProviders)[]; - /** - * Set to `true` to use zoneless change detection. - * This automatically adds `provideZonelessChangeDetection` to the default imports. - * - * @default false - */ - zoneless?: boolean; } diff --git a/projects/testing-library/src/lib/testing-library.ts b/projects/testing-library/src/lib/testing-library.ts index 1e9359c..4667727 100644 --- a/projects/testing-library/src/lib/testing-library.ts +++ b/projects/testing-library/src/lib/testing-library.ts @@ -11,7 +11,6 @@ import { SimpleChanges, Type, isStandalone, - provideZonelessChangeDetection, } from '@angular/core'; import { ComponentFixture, DeferBlockBehavior, DeferBlockState, TestBed, tick } from '@angular/core/testing'; import { NavigationExtras, Router } from '@angular/router'; @@ -80,7 +79,6 @@ export async function render( initialRoute = '', deferBlockStates = undefined, deferBlockBehavior = undefined, - zoneless = false, configureTestBed = () => { /* noop*/ }, @@ -109,10 +107,7 @@ export async function render( imports: imports.concat(defaultImports), routes, }), - providers: addAutoProviders({ - providers: [...providers], - zoneless, - }), + providers, schemas: [...schemas], deferBlockBehavior: deferBlockBehavior ?? DeferBlockBehavior.Manual, }); @@ -523,14 +518,6 @@ function addAutoImports( return [...imports, ...components(), ...routing()]; } -function addAutoProviders({ - providers = [], - zoneless, -}: Pick, 'providers'> & Pick) { - const provideZoneless = () => (zoneless ? [provideZonelessChangeDetection()] : []); - return [...providers, ...provideZoneless()]; -} - async function renderDeferBlock( fixture: ComponentFixture, deferBlockState: DeferBlockState,