mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* add history links for monaco completion provider folder * add history links for monaco query field folder * add history links for components folder * add history links for configuration folder * add history links for dashboard json folder * add history links for gcopypaste folder * add history link for variableMigration * add history link for querybuilder/components/metrics-modal folder * add history link for querybuilder/components/promqail folder * add history links for querybuilder/components folder * add history links for querybuilder/hooks folder * add history links for querybuilder/shared folder * add history links for querybuilder folder * add history links for querycache folder * add history links for src folder * use frontend package and custom auth in module.ts * remove files and fix import issues * remove usePrometheusFrontendPackage * remove extra files * update betterer * remove extra files after rebase * fix betterer for rebase * fix e2e flakiness
20 lines
739 B
TypeScript
20 lines
739 B
TypeScript
// Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/language_provider.mock.ts
|
|
export class EmptyLanguageProviderMock {
|
|
metrics = [];
|
|
constructor() {}
|
|
start() {
|
|
return new Promise((resolve) => {
|
|
resolve('');
|
|
});
|
|
}
|
|
getLabelKeys = jest.fn().mockReturnValue([]);
|
|
getLabelValues = jest.fn().mockReturnValue([]);
|
|
getSeries = jest.fn().mockReturnValue({ __name__: [] });
|
|
fetchSeries = jest.fn().mockReturnValue([]);
|
|
fetchSeriesLabels = jest.fn().mockReturnValue([]);
|
|
fetchSeriesLabelsMatch = jest.fn().mockReturnValue([]);
|
|
fetchLabelsWithMatch = jest.fn().mockReturnValue([]);
|
|
fetchLabels = jest.fn();
|
|
loadMetricsMetadata = jest.fn();
|
|
}
|