Skip to content

Commit 3c9b8d9

Browse files
atscottalxhub
authored andcommitted
refactor(docs-infra): Remove rethrowing error handler (angular#61243)
This is no longer necessary since the work in the FW to rethrow in the TestBed error handler. PR Close angular#61243
1 parent 9fb0fc8 commit 3c9b8d9

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

adev/test-main.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,12 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {ErrorHandler, NgModule, provideZonelessChangeDetection} from '@angular/core';
9+
import {NgModule, provideZonelessChangeDetection} from '@angular/core';
1010
import {TestBed} from '@angular/core/testing';
1111
import {BrowserTestingModule, platformBrowserTesting} from '@angular/platform-browser/testing';
1212

1313
@NgModule({
14-
providers: [
15-
provideZonelessChangeDetection(),
16-
{
17-
provide: ErrorHandler,
18-
useValue: {
19-
handleError: (e: unknown) => {
20-
throw e;
21-
},
22-
},
23-
},
24-
],
14+
providers: [provideZonelessChangeDetection()],
2515
})
2616
export class TestModule {}
2717

0 commit comments

Comments
 (0)