fix tests (mock for app/core/config)

This commit is contained in:
Alexander Zobnin
2018-10-30 23:01:41 +03:00
parent 4bb8df19f6
commit 9708ec459c

View File

@@ -54,6 +54,12 @@ jest.mock('grafana/app/core/table_model', () => {
};
}, {virtual: true});
jest.mock('grafana/app/core/config', () => {
return {
buildInfo: { env: 'development' }
};
}, {virtual: true});
jest.mock('jquery', () => 'module not found', {virtual: true});
// Required for loading angularjs