[ACS-7368] Fix unit tests for aca-content (#3779)

This commit is contained in:
dominikiwanekhyland
2024-04-10 09:05:22 +02:00
committed by MichalKinas
parent 7013ab0f00
commit 968d25ef49
16 changed files with 21 additions and 156 deletions

View File

@@ -29,13 +29,7 @@ import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
});
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);