Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 58e41b2

Browse files
authored
refactor: clean up explicit TestBed teardown and bump MDC version (#1111)
1 parent 7fa8d9c commit 58e41b2

File tree

4 files changed

+620
-612
lines changed

4 files changed

+620
-612
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@angular/router": "^13.1.0",
5353
"@angular/youtube-player": "^13.1.1",
5454
"@stackblitz/sdk": "^1.5.2",
55-
"material-components-web": "14.0.0-canary.1af7c1c4a.0",
55+
"material-components-web": "14.0.0-canary.7d8ea4624.0",
5656
"moment": "^2.29.1",
5757
"rxjs": "^6.6.7",
5858
"tslib": "^2.3.0",

scenes/src/test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ declare const require: {
1515
};
1616

1717
// First, initialize the Angular testing environment.
18-
getTestBed().initTestEnvironment(
19-
BrowserDynamicTestingModule,
20-
platformBrowserDynamicTesting(),
21-
{teardown: {destroyAfterEach: true}}
22-
);
18+
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
2319
// Then we find all the tests.
2420
const context = require.context('./', true, /\.spec\.ts$/);
2521
// And load the modules.

src/test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ import {
1010
declare const require: any;
1111

1212
// First, initialize the Angular testing environment.
13-
getTestBed().initTestEnvironment(
14-
BrowserDynamicTestingModule,
15-
platformBrowserDynamicTesting(),
16-
{teardown: {destroyAfterEach: true}}
17-
);
13+
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
1814
// Then we find all the tests.
1915
const context = require.context('./', true, /\.spec\.ts$/);
2016
// And load the modules.

0 commit comments

Comments
 (0)