Skip to content

Commit 585adac

Browse files
alan-agius4filipesilva
authored andcommitted
fix(@schematics/angular): don't add destroyAfterEach in newly generated spec files
This is now enabled by default. See angular/angular#43353 for more context.
1 parent bc084c4 commit 585adac

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

packages/angular_devkit/build_angular/test/hello-world-app/src/test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ declare const require: {
2626
getTestBed().initTestEnvironment(
2727
BrowserDynamicTestingModule,
2828
platformBrowserDynamicTesting(),
29-
{ teardown: { destroyAfterEach: true }},
3029
);
3130
// Then we find all the tests.
3231
const context = require.context('./', true, /\.spec\.ts$/);

packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ declare const require: {
2727
getTestBed().initTestEnvironment(
2828
BrowserDynamicTestingModule,
2929
platformBrowserDynamicTesting(),
30-
{ teardown: { destroyAfterEach: true }},
3130
);
3231
// Then we find all the tests.
3332
const context = require.context('./', true, /\.spec\.ts$/);

packages/schematics/angular/application/files/src/test.ts.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ declare const require: {
1818
getTestBed().initTestEnvironment(
1919
BrowserDynamicTestingModule,
2020
platformBrowserDynamicTesting(),
21-
{ teardown: { destroyAfterEach: true }},
2221
);
2322

2423
// Then we find all the tests.

packages/schematics/angular/library/files/src/test.ts.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ declare const require: {
1919
getTestBed().initTestEnvironment(
2020
BrowserDynamicTestingModule,
2121
platformBrowserDynamicTesting(),
22-
{ teardown: { destroyAfterEach: true }},
2322
);
2423

2524
// Then we find all the tests.

0 commit comments

Comments
 (0)