mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
9005b484f0
* Applied prettier to relevant webpack configs * Replaced ng-annotate with babel-plugin-angularjs-annotate … and replaced ts-loader with @preset/typescript * Removed redundant import … that is problematic with Babel's module resolver * Updated lockfile * Traspile debug package to es5 for PhantomJS support * Update babel to latest version * Remove @babel/poolyfill and url search params polyfill * Add ts-loader to grafana-ui dependencies * Update prod webpack build to use cor-js 3 * Applied prettier to relevant webpack configs * Replaced ng-annotate with babel-plugin-angularjs-annotate … and replaced ts-loader with @preset/typescript * Updated lockfile Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
23 lines
683 B
TypeScript
23 lines
683 B
TypeScript
import 'jquery';
|
|
import angular from 'angular';
|
|
import 'angular-mocks';
|
|
import 'app/app';
|
|
|
|
// configure enzyme
|
|
import Enzyme from 'enzyme';
|
|
import Adapter from 'enzyme-adapter-react-16';
|
|
Enzyme.configure({ adapter: new Adapter() });
|
|
|
|
angular.module('grafana', ['ngRoute']);
|
|
angular.module('grafana.services', ['ngRoute', '$strap.directives']);
|
|
angular.module('grafana.panels', []);
|
|
angular.module('grafana.controllers', []);
|
|
angular.module('grafana.directives', []);
|
|
angular.module('grafana.filters', []);
|
|
angular.module('grafana.routes', ['ngRoute']);
|
|
|
|
const context = (require as any).context('../', true, /specs\.(tsx?|js)/);
|
|
for (const key of context.keys()) {
|
|
context(key);
|
|
}
|