2017-10-01 13:02:25 -05:00
|
|
|
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']);
|
|
|
|
|
2018-09-03 04:30:44 -05:00
|
|
|
const context = (require as any).context('../', true, /specs\.(tsx?|js)/);
|
2018-08-26 10:14:40 -05:00
|
|
|
for (const key of context.keys()) {
|
2017-10-01 13:02:25 -05:00
|
|
|
context(key);
|
|
|
|
}
|