2017-10-01 13:02:25 -05:00
|
|
|
// const context = require.context('./', true, /_specs\.ts/);
|
|
|
|
// context.keys().forEach(context);
|
|
|
|
// module.exports = context;
|
|
|
|
|
|
|
|
import 'babel-polyfill';
|
|
|
|
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']);
|
|
|
|
|
2017-10-08 08:56:42 -05:00
|
|
|
const context = (<any>require).context('../', true, /specs\.(tsx?|js)/);
|
2017-10-01 13:02:25 -05:00
|
|
|
for (let key of context.keys()) {
|
|
|
|
context(key);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|