mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-48934 Migrate to @angular/build (#12098)
* AAE-48934 Migrate to @angular/build * cr * cr * fix watch issue * fix insights tests
This commit is contained in:
@@ -21,8 +21,13 @@ import 'zone.js';
|
||||
import 'zone.js/testing';
|
||||
import { getTestBed } from '@angular/core/testing';
|
||||
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
|
||||
import * as ChartJs from 'chart.js/auto';
|
||||
import Raphael from 'raphael';
|
||||
|
||||
// First, initialize the Angular testing environment.
|
||||
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
|
||||
teardown: { destroyAfterEach: false }
|
||||
});
|
||||
|
||||
(window as any).Chart = (window as any).Chart || ChartJs.Chart;
|
||||
(window as any).Raphael = (window as any).Raphael || Raphael;
|
||||
|
||||
Reference in New Issue
Block a user