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

refactor: clean up explicit TestBed teardown and bump MDC version #1111

Merged
merged 1 commit into from
Dec 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@angular/router": "^13.1.0",
"@angular/youtube-player": "^13.1.1",
"@stackblitz/sdk": "^1.5.2",
"material-components-web": "14.0.0-canary.1af7c1c4a.0",
"material-components-web": "14.0.0-canary.7d8ea4624.0",
"moment": "^2.29.1",
"rxjs": "^6.6.7",
"tslib": "^2.3.0",
Expand Down
6 changes: 1 addition & 5 deletions scenes/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ declare const require: {
};

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(),
{teardown: {destroyAfterEach: true}}
);
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
Expand Down
6 changes: 1 addition & 5 deletions src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ import {
declare const require: any;

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(),
{teardown: {destroyAfterEach: true}}
);
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
Expand Down
Loading