fix tests (mock for app/core/config)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user