disable test ignore due codecov problems

This commit is contained in:
Alexander Zobnin
2017-10-30 22:46:04 +03:00
parent dc352b8eb9
commit 10b70d672d
35 changed files with 6849 additions and 2 deletions

52
dist/test/test-setup/jest-setup.js vendored Normal file
View File

@@ -0,0 +1,52 @@
'use strict';
var _jsdom = require('jsdom');
// Mock Grafana modules that are not available outside of the core project
// Required for loading module.js
jest.mock('angular', function () {
return {
module: function module() {
return {
directive: function directive() {},
service: function service() {},
factory: function factory() {}
};
}
};
}, { virtual: true }); // JSHint options
/* globals global: false */
jest.mock('app/plugins/sdk', function () {
return {
QueryCtrl: null
};
}, { virtual: true });
jest.mock('app/core/utils/datemath', function () {
var datemath = require('./modules/datemath');
return {
parse: datemath.parse,
parseDateMath: datemath.parseDateMath,
isValid: datemath.isValid
};
}, { virtual: true });
jest.mock('app/core/table_model', function () {
return {};
}, { virtual: true });
jest.mock('./css/query-editor.css!', function () {
return "";
}, { virtual: true });
jest.mock('jquery', function () {
return 'module not found';
}, { virtual: true });
// Required for loading angularjs
var dom = new _jsdom.JSDOM('<html><head><script></script></head><body></body></html>');
// Setup jsdom
global.window = dom.window;
global.document = global.window.document;
global.Node = window.Node;