Skip to content

Commit

Permalink
fix(@schematics/angular): don't add destroyAfterEach in newly gener…
Browse files Browse the repository at this point in the history
…ated spec files

This is now enabled by default.

See angular/angular#43353 for more context.
  • Loading branch information
alan-agius4 authored and filipesilva committed Oct 6, 2021
1 parent bc084c4 commit 585adac
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
Expand Up @@ -26,7 +26,6 @@ declare const require: {
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(),
{ teardown: { destroyAfterEach: true }},
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
Expand Down
Expand Up @@ -27,7 +27,6 @@ declare const require: {
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(),
{ teardown: { destroyAfterEach: true }},
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
Expand Down
Expand Up @@ -18,7 +18,6 @@ declare const require: {
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(),
{ teardown: { destroyAfterEach: true }},
);

// Then we find all the tests.
Expand Down
Expand Up @@ -19,7 +19,6 @@ declare const require: {
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(),
{ teardown: { destroyAfterEach: true }},
);

// Then we find all the tests.
Expand Down

0 comments on commit 585adac

Please sign in to comment.