Skip to content

Commit cdc9e64

Browse files
committed
@angular/core migration - migration-v13-testbed-teardown
In Angular version 13, the `teardown` flag in `TestBed` will be enabled by default. This migration automatically opts out existing apps from the new teardown behavior.
1 parent 4dc01c9 commit cdc9e64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ declare const require: {
1717
// First, initialize the Angular testing environment.
1818
getTestBed().initTestEnvironment(
1919
BrowserDynamicTestingModule,
20-
platformBrowserDynamicTesting()
20+
platformBrowserDynamicTesting(), {
21+
teardown: { destroyAfterEach: false }
22+
}
2123
);
2224
// Then we find all the tests.
2325
const context = require.context('./', true, /\.spec\.ts$/);

0 commit comments

Comments
 (0)