@@ -11,7 +11,6 @@ import {
11
11
SimpleChanges ,
12
12
Type ,
13
13
isStandalone ,
14
- provideZonelessChangeDetection ,
15
14
} from '@angular/core' ;
16
15
import { ComponentFixture , DeferBlockBehavior , DeferBlockState , TestBed , tick } from '@angular/core/testing' ;
17
16
import { NavigationExtras , Router } from '@angular/router' ;
@@ -80,7 +79,6 @@ export async function render<SutType, WrapperType = SutType>(
80
79
initialRoute = '' ,
81
80
deferBlockStates = undefined ,
82
81
deferBlockBehavior = undefined ,
83
- zoneless = false ,
84
82
configureTestBed = ( ) => {
85
83
/* noop*/
86
84
} ,
@@ -109,10 +107,7 @@ export async function render<SutType, WrapperType = SutType>(
109
107
imports : imports . concat ( defaultImports ) ,
110
108
routes,
111
109
} ) ,
112
- providers : addAutoProviders ( {
113
- providers : [ ...providers ] ,
114
- zoneless,
115
- } ) ,
110
+ providers,
116
111
schemas : [ ...schemas ] ,
117
112
deferBlockBehavior : deferBlockBehavior ?? DeferBlockBehavior . Manual ,
118
113
} ) ;
@@ -523,14 +518,6 @@ function addAutoImports<SutType>(
523
518
return [ ...imports , ...components ( ) , ...routing ( ) ] ;
524
519
}
525
520
526
- function addAutoProviders ( {
527
- providers = [ ] ,
528
- zoneless,
529
- } : Pick < RenderTemplateOptions < any > , 'providers' > & Pick < Config , 'zoneless' > ) {
530
- const provideZoneless = ( ) => ( zoneless ? [ provideZonelessChangeDetection ( ) ] : [ ] ) ;
531
- return [ ...providers , ...provideZoneless ( ) ] ;
532
- }
533
-
534
521
async function renderDeferBlock < SutType > (
535
522
fixture : ComponentFixture < SutType > ,
536
523
deferBlockState : DeferBlockState ,
0 commit comments